Skip to content

Commit 0127f55

Browse files
committed
Merge branch 'master' of https://github.com/atenfyr/UAssetGUI
2 parents 6a4e8d4 + 37e0359 commit 0127f55

File tree

1 file changed

+37
-1
lines changed

1 file changed

+37
-1
lines changed

.github/workflows/build.yml

Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,19 @@
11
name: CI
22
on:
3+
workflow_dispatch:
34
push:
45
branches:
56
- master
7+
paths-ignore:
8+
- ".github/**"
9+
- ".gitignore"
10+
- "*.md"
611

712
jobs:
813
build:
914
runs-on: windows-latest
15+
permissions:
16+
contents: write
1017

1118
env:
1219
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
@@ -37,5 +44,34 @@ jobs:
3744
- name: Restore packages
3845
run: nuget restore UAssetGUI.sln
3946

40-
- name: Build
47+
- name: Build All
4148
run: msbuild UAssetGUI.sln /p:Configuration=Release
49+
50+
- name: Build Publish Binary
51+
run: dotnet publish --sc false -c Release -r win-x64 -p:PublishSingleFile=true -o ./build ./UAssetGUI/UAssetGUI.csproj
52+
53+
- name: Get Short SHA
54+
id: vars
55+
shell: bash
56+
run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
57+
58+
- name: Get Project Version
59+
uses: bbonkr/get-version-action@v1
60+
id: get_version
61+
with:
62+
project: './UAssetGUI/UAssetGUI.csproj'
63+
show_log_message: true
64+
65+
- name: Upload Build Artifact
66+
uses: actions/upload-artifact@v4.6.1
67+
with:
68+
name: UAssetGUI-${{ steps.get_version.outputs.version }}-${{ steps.vars.outputs.sha_short }}
69+
path: ./build/*.exe
70+
71+
- name: Make Experimental Pre-Release
72+
uses: softprops/action-gh-release@v2
73+
with:
74+
prerelease: true
75+
tag_name: experimental-latest
76+
name: UAssetGUI-${{ steps.get_version.outputs.version }}-${{ steps.vars.outputs.sha_short }}
77+
files: ./build/*.exe

0 commit comments

Comments
 (0)