AppVeyor.yml

Josh edited this page Mar 6, 2016 · 5 revisions

Next thing to look at is the AppVeyor.yml file. This is the configuration file that tells AppVeyor how to build and release the package.

    deploy:
    - provider: GitHub
      auth_token:
        secure: <replace with your encrypted GitHub token>
      artifact: 
      prerelease: false
      on:
        branch: master
        IsGithubRelease: true
    - provider: NuGet
      api_key:
        secure: <Replace with your encrypted Nuget.org API token>
      artifact: 
      on:
        branch: master
        IsGithubRelease: true

There are two values that are marked for replacement: the GitHub auth_token and the NuGet api_key. The auth_token allows for the NuGet package (or other build artifacts) to be pushed back to the GitHub release. This way you can keep all of your releases along with the code. This section can be safely removed if you don't want that. The api_key is what allows AppVeyor to publish the package to NuGet.

An important note: do not paste in the actual tokens here. Remember, this file will be checked into source control. You need to encrypt the value in AppVeyor's website and paste the encrypted value here.

Prev | Up | Next

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.