Skip to content

Commit 7d19588

Browse files
authored
Update build-release.yml
1 parent 3ae007c commit 7d19588

1 file changed

Lines changed: 11 additions & 14 deletions

File tree

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,32 @@
1-
name: Build and Auto-Release
1+
name: Build and Release Self-Contained
22

33
on:
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

99
jobs:
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

Comments
Β (0)