1- name : Build and Auto- Release
1+ name : Build and Release Self-Contained
22
33on :
44 push :
55 tags :
6- - ' v*' # Triggers when you push a tag like v1.0.0
7- workflow_dispatch : # Also allows manual trigger from GitHub UI
6+ - ' v*' # Triggers on version tags like v1.0.0
7+ workflow_dispatch :
88
99jobs :
1010 build :
1111 runs-on : windows-latest
1212
1313 env :
1414 Configuration : Release
15- OutputDir : output
15+ OutputDir : release
1616
1717 steps :
18- - name : π§Ύ Checkout Code
18+ - name : π§Ύ Checkout code
1919 uses : actions/checkout@v4
2020
21- - name : π§° Setup .NET SDK
21+ - name : π§° Setup .NET
2222 uses : actions/setup-dotnet@v4
2323 with :
2424 dotnet-version : ' 6.0.x'
2525
26- - name : π Restore Dependencies
26+ - name : π Restore dependencies
2727 run : dotnet restore
2828
29- - name : π οΈ Build Solution
30- run : dotnet build --configuration $env:Configuration --no-restore
31-
32- - name : π Publish Self-Contained Executable
29+ - name : π οΈ Build and Publish (Self-Contained)
3330 run : |
3431 dotnet publish Ext4Explorer/Ext4Explorer.csproj `
3532 --configuration $env:Configuration `
@@ -40,14 +37,14 @@ jobs:
4037 /p:IncludeNativeLibrariesForSelfExtract=true `
4138 /p:EnableCompressionInSingleFile=true
4239
43- - name : π¦ Zip Published Output
44- run : Compress-Archive -Path $env:OutputDir\* -DestinationPath release .zip
40+ - name : π¦ Zip Release Output
41+ run : Compress-Archive -Path " $env:OutputDir\*" -DestinationPath Ext4Explorer .zip
4542
4643 - name : π Create GitHub Release and Upload Artifact
4744 uses : softprops/action-gh-release@v2
4845 with :
4946 name : Release ${{ github.ref_name }}
5047 tag_name : ${{ github.ref_name }}
51- files : release .zip
48+ files : Ext4Explorer .zip
5249 env :
5350 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
0 commit comments