forked from BuildBoy12-SL/AdvancedHints
-
Notifications
You must be signed in to change notification settings - Fork 2
37 lines (31 loc) · 1.05 KB
/
build.yml
File metadata and controls
37 lines (31 loc) · 1.05 KB
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
name: AdvancedHints CI
on: [push, workflow_dispatch]
jobs:
build:
runs-on: windows-latest
steps:
- name: Setup .NET Core SDK
uses: actions/setup-dotnet@v1.5.0
- uses: actions/checkout@v2.3.1
- name: Get references
shell: pwsh
run: |
Invoke-WebRequest -Uri https://exmod-team.github.io/SL-References/Dev.zip -OutFile References.zip
Expand-Archive -Path References.zip -DestinationPath References
- name: Restore project
run: dotnet restore -p:Configuration=Release
- name: Build project
shell: pwsh
run: |
if ('${{ GITHUB.REF }}' -Match 'dev$') {
dotnet build -p:DeployToServer=false -p:Configuration=Release -p:BuildNumber=${{ GITHUB.RUN_NUMBER }}
} else {
dotnet build -p:DeployToServer=false -p:Configuration=Release
}
env:
EXILED_REFERENCES: ${{ github.workspace }}/References
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: Build Results
path: AdvancedHints/bin/Release