-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
54 lines (47 loc) · 1.46 KB
/
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
before_build:
- cmd: dotnet --version
- ps: Get-ChildItem -Path "C:\Program Files\dotnet\sdk"
- ps: scripts\patch_versions.ps1
environment:
access_token:
secure: Zcoti9GsS4Y1t12qVcWhfDXMJLW8QLt4SdeQi8VKUFBtd/gVyWsZlLXDOHLP8i5U
COVERALLS_REPO_TOKEN:
secure: XzMSOD/Z5rLyNTGAuUFDTolKl8oOjUboNrLliNQQb1V2chOvNtpVQVBDiBgC6VgZ
branches:
only:
- master
- dev
build_script:
- ps: scripts\build.ps1
- ps: scripts\build_choco.ps1
- cmd: scripts\upload_coveralls.bat
test: off
artifacts:
- path: src\Armyknife\bin\release\netcoreapp2.0\win10-x64\publish\armyknife_*.exe
name: armyknife-windows
type: zip
- path: src\Armyknife\bin\release\netcoreapp2.0\ubuntu.16.04-x64\publish\armyknife.tar.gz
name: armyknife-ubuntu
type: zip
- path: docs
name: docs
type: zip`
- path: armyknife.*.nupkg
name: armyknife-choco
type: zip
deploy:
release: $(versionString)
provider: GitHub
auth_token: $(access_token)
draft: true
on:
branch: master
on_success:
- cmd: git config --global credential.helper store
- ps: Add-Content "$env:USERPROFILE\.git-credentials" "https://$($env:access_token):[email protected]`n"
- ps: git config --global user.email [email protected]
- cmd: git config --global user.name "Duco"
- cmd: git add *.csproj
- cmd: git add docs/index.html
- ps: git commit -m "[skip ci] Updated files for version $($env:versionString)"
- cmd: git push origin HEAD:%APPVEYOR_REPO_BRANCH%