-
Notifications
You must be signed in to change notification settings - Fork 5
49 lines (42 loc) · 1.27 KB
/
main.yml
File metadata and controls
49 lines (42 loc) · 1.27 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
38
39
40
41
42
43
44
45
46
47
48
49
name: ScriptedEvents Build
on:
push:
branches:
- main
- dev
- andrzej-dev
pull_request:
branches:
- main
- dev
- andrzej-dev
workflow_dispatch:
env:
REFERENCES_URL: https://misaka-zerotwo.github.io/SL-References/Dev.zip
REFERENCES_PATH: ${{ github.workspace }}/References
jobs:
build:
runs-on: windows-latest
steps:
- name: Setup .NET Core SDK
uses: actions/setup-dotnet@v3
- uses: actions/checkout@v3.3.0
- name: Restore Packages
run: nuget restore
- name: Get Build References
shell: pwsh
run: |
Invoke-WebRequest -Uri ${{ env.REFERENCES_URL }} -OutFile ${{ github.workspace }}/Dev.zip
Expand-Archive -Path Dev.zip -DestinationPath ${{ env.REFERENCES_PATH }}
- name: Setup MSBuild.exe
uses: microsoft/Setup-MSBuild@v1
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true'
- name: Build
run: |
msbuild ScriptedEvents\ScriptedEvents.csproj -t:rebuild -property:Configuration=Release -property:ReferencePath="${{ env.REFERENCES_PATH }}"
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: Scripted Events
path: "ScriptedEvents/bin/Release/ScriptedEvents.dll"