Skip to content

Instantly share code, notes, and snippets.

@ThunderCls
Forked from unitycoder/AppVeyor.txt
Created August 10, 2025 19:14
Show Gist options
  • Save ThunderCls/10840d0b34f8cd7fdcbc7caa403cbb87 to your computer and use it in GitHub Desktop.
Save ThunderCls/10840d0b34f8cd7fdcbc7caa403cbb87 to your computer and use it in GitHub Desktop.
AppVeyor Github Automatic Build and Releases
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"
version: 1.0.{build}
branches:
only:
- master
skip_tags: true
skip_branch_with_pr: true
configuration: Release
only_commits:
message: /#build/
build:
verbosity: minimal
after_build:
- cmd: 7z a PixelArtTool.zip %APPVEYOR_BUILD_FOLDER%\PixelArtTool\bin\Release\*.exe %APPVEYOR_BUILD_FOLDER%\PixelArtTool\bin\Release\*.exe.config
artifacts:
- path: PixelArtTool.zip
name: deploy
deploy:
- provider: GitHub
auth_token:
secure: .....
artifact: deploy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment