-
-
Notifications
You must be signed in to change notification settings - Fork 3
55 lines (42 loc) · 1.38 KB
/
main.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
54
55
# Based on https://github.com/galaxy119/EXILED/blob/master/.github/workflows/main.yml
name: Build
on:
push:
branches:
- master
env:
EXILED_REFERENCES: ${{ github.workspace }}/SCPStats/lib
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Setup Nuget
uses: iRebbok/setup-nuget@master
- name: Restore Packages
run: nuget restore SCPStats.sln
- name: Setup MSBuild
uses: microsoft/setup-msbuild@v1
- name: Download references
uses: carlosperate/[email protected]
with:
file-url: 'https://www.exiled.host/build_deps/Dev.zip'
file-name: 'References.zip'
- uses: carlosperate/[email protected]
with:
file-url: 'https://scpstats.com/websocket-sharp.dll?key=${{ secrets.WEBSOCKETSHARP }}'
file-name: 'SCPStats/lib/websocket-sharp.dll'
- name: Download 7zip
uses: carlosperate/[email protected]
with:
file-url: 'https://www.exiled.host/7za.exe'
file-name: '7zip.exe'
- name: Extract Refs
run: ./7zip.exe e References.zip -oSCPStats/lib/ -r -y
- name: Build
run: msbuild SCPStats.sln -p:Configuration=release
- name: Upload Build
uses: actions/upload-artifact@v2
with:
name: Plugin DLL
path: SCPStats/bin/Release/SCPStats*.dll