-
Notifications
You must be signed in to change notification settings - Fork 5
53 lines (44 loc) · 1.2 KB
/
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
53
name: build
on:
- workflow_dispatch
- push
env:
BuildConfiguration: Release
BuildVersion: 1.23.0.${{ github.run_number }}
jobs:
build:
name: build
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: actions/cache@v4
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-
- name: Run Build.ps1
run: >
./Build/Build.ps1
-Configuration "${{ env.BuildConfiguration }}"
-Version "${{ env.BuildVersion }}"
-BranchName "${{ github.ref_name }}"
-CoverageBadgeUploadToken "${{ secrets.COVERAGE_BADGE_UPLOAD_TOKEN }}"
- name: Upload Packages artifacts
if: ${{ always() }}
uses: actions/upload-artifact@v4
with:
name: Packages
path: |
Build/Output/*.nupkg
Build/Output/*.zip
- name: Upload TestOutput artifacts
uses: actions/upload-artifact@v4
if: ${{ always() }}
with:
name: TestOutput
path: |
Build/Output/TestResults/**
Build/Output/TestCoverage/**