-
-
Notifications
You must be signed in to change notification settings - Fork 8
/
appveyor.yml
93 lines (93 loc) · 3.16 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
version: 1.0.{build}
skip_tags: true
stack: node 18
skip_commits:
message: /chore(release)/
branches:
only:
- master
- /preview\/*/
- /release\/*/
image:
- Ubuntu2004
- Visual Studio 2022
environment:
GH_TOKEN:
secure: /o9VAhx5ewGmdLR9qcgFJMzBaCuzOmGlsXAHu7khUJLdQzsv4gJzLUfYDghcRPHd
access_token:
secure: yQcU3EbE3/jaIhwn6e+n76xzcQ+tGXXdIZAmA3Z8ssj5IEYPehthJkLYhhNEmw21
EmailPasswordOptions:ApiKey:
secure: CgnX5RPcI4Wq1hyLKIh+5DaEl6wfV/Mdo6J8u3mW0A4iVBBXpPblFpp5vh0DUauI
EmailPasswordOptions:Email:
secure: M+wRwy+l/01DvVvmy0Th96FLiwzNnwK3Sp1YMvMnUns=
EmailPasswordOptions:Password:
secure: h7zhWIG5sQBVM6loU77ClQ==
decrypt_secret:
secure: BDKOW5teXcJUwLqekbf6VQ==
donetsdk: 8.0.202
init:
- cmd: git config --global core.autocrlf true
install:
- ps: if ($isWindows) { Install-Product node '' }
- sh: wget -q https://packages.microsoft.com/config/ubuntu/16.04/packages-microsoft-prod.deb
- sh: sudo dpkg -i packages-microsoft-prod.deb
- sh: sudo apt-get update
- sh: sudo apt-get -y install apt-transport-https
- sh: sudo chmod +x ./dotnet-install.sh
- sh: sudo ./dotnet-install.sh -Channel Current -Version $donetsdk -InstallDir ./dotnetsdk -NoPath
- sh: export PATH=/home/appveyor/projects/identity-firebase/dotnetsdk:$PATH
- sh: sudo apt -y install nuget
- cmd: pwsh ./dotnet-install.ps1 -Version 6.0.406 -InstallDir "C:\Program Files\dotnet"
- ps: dotnet tool install --global GitVersion.Tool
- ps: dotnet gitversion /l console /output buildserver
- cmd: pwsh ./dotnet-install.ps1 -Version %donetsdk% -InstallDir "C:\Program Files\dotnet"
- ps: dotnet tool install --global dotnet-sonarscanner
- cmd: nuget install ReportGenerator -ExcludeVersion
- nuget install secure-file -ExcludeVersion
- cmd: secure-file\tools\secure-file -decrypt test\testsettings.json.enc -secret %decrypt_secret%
- cmd: secure-file\tools\secure-file -decrypt test\identityfirestore.json.enc -secret %decrypt_secret%
- sh: mono secure-file/tools/secure-file.exe -decrypt test/testsettings.json.enc -secret $decrypt_secret
- sh: mono secure-file/tools/secure-file.exe -decrypt test/identityfirestore.json.enc -secret $decrypt_secret
- ps: ./appveyorinit.ps1
- cmd: set JAVA_HOME=C:\Program Files\Java\jdk19
- cmd: set PATH=%JAVA_HOME%\bin;%PATH%
build_script:
- ps: ./build.ps1
test_script:
- cmd: publish.cmd
artifacts:
- path: artifacts/**/*.nupkg
name: nuget
deploy:
- provider: NuGet
api_key:
secure: L5Ol2yiygLW8nUF6j5/rwx4feonMPly+S69GjoX1ilEUklPMixlX5RW2l8FJScNK
on:
branch:
- /preview\/*/
- /release\/*/
CI_WINDOWS: true
- provider: GitHub
auth_token: $(GH_TOKEN)
draft: true
prerelease: true
release: $(NextVersion)
on:
branch:
- /preview\/*/
CI_WINDOWS: true
- provider: GitHub
auth_token: $(GH_TOKEN)
draft: true
release: $(NextVersion)
on:
branch:
- /release\/*/
CI_WINDOWS: true
for:
-
branches:
only:
- /release\/*/
on_success:
- cmd: semantic-release -b %APPVEYOR_REPO_BRANCH%