-
Notifications
You must be signed in to change notification settings - Fork 1.1k
52 lines (39 loc) · 1.57 KB
/
dev-build.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
name: Dev Build
on: [workflow_dispatch]
defaults:
run:
shell: powershell
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup MSBuild
uses: microsoft/setup-msbuild@v1
- name: Run Bootstrap
run: ./bootstrap.ps1
- name: Update version
id: version
run: |
$packageVersion = ./build-scripts/update_version.ps1 -dev $true -buildNumber $Env:GITHUB_RUN_NUMBER
echo "::set-output name=packageVersion::$packageVersion"
- name: Build (Release)
run: msbuild "./Hearthstone Deck Tracker.sln" /p:Configuration=Release /p:Platform="x86"
- name: Setup VSTest
uses: Malcolmnixon/Setup-VSTest@v4
- name: Test
run: |
vstest.console "HearthWatcher.Test\bin\x86\Release\HearthWatcher.Test.dll"
vstest.console "HDTTests\bin\x86\Release\HDTTests.dll"
- name: Build (Dev)
run: msbuild "./Hearthstone Deck Tracker.sln" /p:Configuration=Debug /p:Platform="x86" /p:DefineConstants='"DEBUG;DEV;SQUIRREL;TRACE"' /p:OutputPath="bin\x86\Squirrel\"
- name: Package
run: ./build-scripts/package.ps1 -dev $true -packageVersion ${{ steps.version.outputs.packageVersion }}
env:
CERT: ${{ secrets.CERT }}
CERT_PASSWORD: ${{ secrets.CERT_PASSWORD }}
- name: Release
run: ./build-scripts/github_release.ps1 -type dev -packageVersion ${{ steps.version.outputs.packageVersion }}
env:
HDT_GITHUB_TOKEN: ${{ secrets.HDT_GITHUB_TOKEN }}