-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
28 lines (28 loc) · 991 Bytes
/
appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
image: Visual Studio 2017
version: 1.0.{build}
configuration: Release
platform: Any CPU
before_build:
- nuget restore
- echo namespace CalcBuddy { static class Version { public const string Info = "%APPVEYOR_BUILD_VERSION%"; } } > CalcBuddy/Version.cs
build:
verbosity: minimal
after_build:
- git checkout CalcBuddy/Version.cs
artifacts:
- path: CalcBuddy/bin/Release/bridge
name: CalcBuddy
environment:
access_token:
secure: Mad20djD7L0vIx2lPd9wh4P3NfbdhuyfAAK/rbxLQERFnhzoHD77XINWT9G4qsFD
deploy_script:
- git config --global credential.helper store
- git config --global user.email "[email protected]"
- git config --global user.name "AppVeyor"
- ps: Add-Content "$HOME\.git-credentials" "https://$($env:access_token):[email protected]`n"
- git checkout origin/gh-pages
- git rm -rf .
- git add CalcBuddy/bin/Release/bridge/*
- bash -c "git mv -v CalcBuddy/bin/Release/bridge/* ."
- git commit -m "deploy script"
- git push origin HEAD:gh-pages