Skip to content

Commit 3536f5d

Browse files
committed
add release action
1 parent 918bc5b commit 3536f5d

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

.github/workflows/release.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Release
2+
3+
on:
4+
release:
5+
types: [ created ]
6+
7+
permissions:
8+
contents: write
9+
10+
jobs:
11+
12+
release:
13+
runs-on: ubuntu-latest
14+
15+
env:
16+
ReferenceUrl: https://exmod-team.github.io/SL-References/Dev.zip
17+
ReferencePath: ${{ github.workspace }}/References
18+
19+
steps:
20+
21+
- uses: actions/checkout@v4
22+
23+
- name: Set Up .NET
24+
uses: actions/setup-dotnet@v4.0.1
25+
with:
26+
dotnet-version: 9.0.x
27+
28+
- name: Download References
29+
run: |
30+
wget -O "References.zip" ${{ env.ReferenceUrl }}
31+
unzip -d ${{ env.ReferencePath }} "References.zip"
32+
33+
- name: Rename Assembly-CSharp
34+
working-directory: ${{ env.ReferencePath }}
35+
run: mv Assembly-CSharp-Publicized.dll Assembly-CSharp.dll
36+
37+
- name: Build
38+
run: dotnet build -c:Release -o Output
39+
40+
- name: Upload Assets
41+
uses: softprops/action-gh-release@v2
42+
with:
43+
files: Output/ScpProximityChat*.dll,Output/ScpProximityChat*.xml

0 commit comments

Comments
 (0)