Skip to content
This repository was archived by the owner on Oct 9, 2022. It is now read-only.

Commit 2e9ce20

Browse files
author
Build
committed
Init
0 parents  commit 2e9ce20

12 files changed

Lines changed: 813 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: SwitchServerCommand CI
2+
on: [push, pull_request]
3+
4+
jobs:
5+
build:
6+
runs-on: windows-latest
7+
steps:
8+
- name: Setup .NET Core SDK
9+
uses: actions/setup-dotnet@v1.5.0
10+
11+
- uses: actions/checkout@v2.3.1
12+
13+
- name: Download 7zip
14+
uses: carlosperate/download-file-action@v1.0.3
15+
with:
16+
file-url: 'https://www.exiled.host/7za.exe'
17+
file-name: '7zip.exe'
18+
19+
- name: Download references
20+
uses: carlosperate/download-file-action@v1.0.3
21+
with:
22+
file-url: 'https://www.exiled.host/build_deps/Dev.zip'
23+
file-name: 'References.zip'
24+
25+
- name: Extract Refs
26+
run: ./7zip.exe e References.zip -oReferences -r -y
27+
28+
- name: Restore project
29+
run: dotnet restore -p:Configuration=Release
30+
31+
- name: Build project
32+
shell: pwsh
33+
run: |
34+
if ('${{ GITHUB.REF }}' -Match 'dev$') {
35+
dotnet build -p:DeployToServer=false -p:Configuration=Release -p:BuildNumber=${{ GITHUB.RUN_NUMBER }}
36+
} else {
37+
dotnet build -p:DeployToServer=false -p:Configuration=Release
38+
}
39+
env:
40+
EXILED_REFERENCES: ${{ github.workspace }}/References
41+
42+
- name: Upload artifacts
43+
uses: actions/upload-artifact@v2
44+
with:
45+
name: Build Results
46+
path: SwitchServerCommand/bin/Release

0 commit comments

Comments
 (0)