|
Settings (from UI) |
|
Note: You can use web UI to adjust most settings, OR use appveyor.yml in your repo. |
|
(cannot use both, except for a few limited settings. using yml file allows some advanced settings that are not available in the web UI) |
|
|
|
General |
|
- Project name |
|
- Next Build : You only need to adjust this, if you do builds manually (and the previous build or release already exists) |
|
- Branches to build: can set selected branches, "master" |
|
- [x] do not build tags |
|
- [x] Do not build feature branches with open Pull Requests |
|
- [ ] Do not build on "Push" events *Dont enable this, otherwise pushing to repository doesnt trigger build |
|
- [x] Do not build on "Pull request" events |
|
|
|
Environment |
|
- Can select build image "vs2017" (default was vs2015) |
|
|
|
Build |
|
- Configuration : Release |
|
- After build script, "CMD", use this to zip multiple files in one zip |
|
7z a PixelArtTool.zip %APPVEYOR_BUILD_FOLDER%\PixelArtTool\bin\Release\*.exe %APPVEYOR_BUILD_FOLDER%\PixelArtTool\bin\Release\*.exe.config |
|
|
|
Artifacts |
|
- Path to artifact: PixelArtTool.zip |
|
- Deployment name: deploy |
|
- type: auto |
|
|
|
Deployment |
|
- Deployment provider: Github Releases |
|
- Github authentication token: get yours from https://github.com/settings/tokens |
|
- Artifact(s) to deploy: deploy (this is the deployment name from artifacts page) |
|
|
|
Badges |
|
- you can get your badge image here "build passing" |
|
|
|
export YAML |
|
- if you want to use some advanved features, export yaml, place that in repo root |
|
- note that you need to use secure variables for the token or other secrets using https://ci.appveyor.com/tools/encrypt |
|
- paste your auth-token here, then get your secure variable and use that in yml file |
|
- Attached example yml below (builds only on commit message that has "#build") |
|
|
|
--------------------- |
|
References |
|
- if want to build only on specific commit message, need to use yml file https://www.appveyor.com/docs/how-to/filtering-commits/#include-commits |
|
- artifacts means "files that are picked, to be included in the deployment" |