forked from BuildBoy12-SL/EndConditions
-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (38 loc) · 1.27 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
name: EndConditions CI
on: [push, pull_request]
jobs:
build:
runs-on: windows-latest
steps:
- name: Setup .NET Core SDK
uses: actions/[email protected]
- uses: actions/[email protected]
- name: Download 7zip
uses: carlosperate/[email protected]
with:
file-url: 'https://www.exiled.host/7za.exe'
file-name: '7zip.exe'
- name: Download references
uses: carlosperate/[email protected]
with:
file-url: 'https://www.exiled.host/build_deps/References.zip'
file-name: 'References.zip'
- name: Extract Refs
run: ./7zip.exe e References.zip -oReferences -r -y
- 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@v2
with:
name: Build Results
path: EndConditions/bin/Release