File tree Expand file tree Collapse file tree 1 file changed +37
-1
lines changed
Expand file tree Collapse file tree 1 file changed +37
-1
lines changed Original file line number Diff line number Diff line change 11name : CI
22on :
3+ workflow_dispatch :
34 push :
45 branches :
56 - master
7+ paths-ignore :
8+ - " .github/**"
9+ - " .gitignore"
10+ - " *.md"
611
712jobs :
813 build :
914 runs-on : windows-latest
15+ permissions :
16+ contents : write
1017
1118 env :
1219 ACTIONS_ALLOW_UNSECURE_COMMANDS : true
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
You can’t perform that action at this time.
0 commit comments