How do I automatically deploy?

justin's Avatar


03 Apr, 2015 10:38 PM

I have a deployment setup in the site and not in my appveyor.yml file. When I build I successfully get artifacts and I can manually deploy via the website. How do I get it so that it always deploys after a successful build?

  1. Support Staff 1 Posted by Feodor Fitsner on 03 Apr, 2015 10:46 PM

    Feodor Fitsner's Avatar

    You mean you have setup a new environment under "Environments"?

  2. 2 Posted by justin on 03 Apr, 2015 11:04 PM

    justin's Avatar


    I don't want to have to click that "Update" button I want it to just always deploy based on the deploy environment I created.

  3. 3 Posted by justin on 03 Apr, 2015 11:10 PM

    justin's Avatar

    Also, I wanted to add that I don't want to put my amazon keys into my repo which is why I can't put it all in the appveyor.yaml config file.

  4. 4 Posted by justin on 04 Apr, 2015 01:47 AM

    justin's Avatar

    I think I found the answer to this also. The thing that was confusing me is that it seems like you have to either do everything through the web UI or everything through the appveyor.yaml file.

    So the trick is to do the deploy in the appveryor.yaml file but instead of putting your keys in plain text go into the encryption tool and encrypt your values. This seems to be working.

      secure: <encrypted id>
      secure: <encrypted key>

    Then, I used my own deploy script:

      - bash bin/nwpub -c %APPVEYOR_REPO_BRANCH% -a x64 -i %s3accessKeyId% -k %s3secretAccessKey%
      - bash bin/nwpub -c %APPVEYOR_REPO_BRANCH% -a x86 -i %s3accessKeyId% -k %s3secretAccessKey%
  5. justin closed this discussion on 04 Apr, 2015 01:48 AM.

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

Keyboard shortcuts


? 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