-
Notifications
You must be signed in to change notification settings - Fork 3
44 lines (33 loc) · 1.23 KB
/
release.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
# Based on https://github.com/PintTheDragon/EasyEvents/blob/master/.github/workflows/main.yml
name: Build for Release
on:
release:
types: [published]
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 KillLogs.sln
- name: Setup MSBuild
uses: microsoft/setup-msbuild@v1
- name: Get references
shell: pwsh
run: |
Invoke-WebRequest -Uri https://misaka-zerotwo.github.io/SL-References/Master.zip -OutFile ${{ github.workspace }}/References.zip
Expand-Archive -Path References.zip -DestinationPath ${{ github.workspace }}\lib
- name: Build
run: msbuild KillLogs.sln -p:Configuration=release
env:
EXILED_REFERENCES: ${{ github.workspace }}\lib
- name: Upload artifact and release
uses: nanoufo/action-upload-artifacts-and-release-assets@main
with:
path: D:\a\KillLogs\KillLogs\bin\Release\KillLogs.dll
upload-release-files: true
release-upload-url: ${{ github.event.release.upload_url }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}