Deploy to a different GitHub repo

rgregg's Avatar

rgregg

23 Jun, 2015 05:54 PM

I have a project with an internal repro (my-project-internal) that's private. As part of the build of this project, HTML artifacts are generated that I want to be published to another git repro (my-project-docs). Is there an easy way to do this in AppVeyor? I've looked at just using a deployment script to execute the git commands necessary to clone the -docs repo, copy the artifacts into that repo, and then commit and push them. However, that seems a bit hacky, and the access token for the GitHub repo ends up in the clear in the build log, which isn't good.

Is there a deployment environment that can push artifacts to a new repo?

  1. Support Staff 1 Posted by Feodor Fitsner on 23 Jun, 2015 08:21 PM

    Feodor Fitsner's Avatar

    You don't necessary put GitHub access token to repo URL. Take a look at this article: http://www.appveyor.com/docs/how-to/git-push

    Even if you include it in the URL you can use environment variable there to avoid showing it in the build log.

    - Feodor

  2. rgregg closed this discussion on 08 Feb, 2016 07:48 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac