Skip to content

Commit 5f2b1af

Browse files
committed
Merge remote-tracking branch 'origin/master' into version-bump-0.6
2 parents 7944d8e + 57af2db commit 5f2b1af

File tree

1 file changed

+52
-0
lines changed

1 file changed

+52
-0
lines changed
+52
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: Publish stable release of UndertaleModTool GUI
2+
3+
on:
4+
workflow_dispatch:
5+
6+
concurrency:
7+
group: ${{ github.workflow }}
8+
cancel-in-progress: true
9+
10+
jobs:
11+
build_gui:
12+
13+
strategy:
14+
fail-fast: false
15+
matrix:
16+
os: [windows-latest]
17+
configuration: [Release]
18+
bundled: [true]
19+
singlefile: [true, false]
20+
21+
runs-on: ${{ matrix.os }}
22+
23+
steps:
24+
- uses: actions/checkout@v4
25+
with:
26+
submodules: true
27+
- name: Setup .NET
28+
uses: actions/setup-dotnet@v4
29+
with:
30+
dotnet-version: 6.0.x
31+
- name: Restore dependencies
32+
run: dotnet restore
33+
- name: Build
34+
run: |
35+
dotnet build UndertaleModTool --no-restore
36+
- name: Publish ${{ matrix.os }} GUI
37+
run: |
38+
dotnet publish UndertaleModTool -c ${{ matrix.configuration }} -r win-x64 --self-contained ${{ matrix.bundled }} -p:PublishSingleFile=${{ matrix.singlefile }} --output ${{ matrix.os }}
39+
- name: Copy external files
40+
run: |
41+
cp ./README.md ./${{ matrix.os }}
42+
cp ./SCRIPTS.md ./${{ matrix.os }}
43+
cp ./LICENSE.txt ./${{ matrix.os }}
44+
- name: Create zip for stable release Windows GUI
45+
run: |
46+
7z a -tzip GUI-${{ matrix.os }}-${{ matrix.configuration }}-isBundled-${{ matrix.bundled }}-isSingleFile-${{ matrix.singlefile }}.zip ./${{ matrix.os }}/* -mx0
47+
- name: Upload artifact
48+
uses: actions/upload-artifact@v4
49+
with:
50+
name: GUI-${{ matrix.os }}-${{ matrix.configuration }}-isBundled-${{ matrix.bundled }}-isSingleFile-${{ matrix.singlefile }}
51+
path: GUI-${{ matrix.os }}-${{ matrix.configuration }}-isBundled-${{ matrix.bundled }}-isSingleFile-${{ matrix.singlefile }}.zip
52+

0 commit comments

Comments
 (0)