Skip to content

Commit 384048c

Browse files
authored
Update build-release.yml
1 parent 1039070 commit 384048c

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

.github/workflows/build-release.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ jobs:
1313
env:
1414
Configuration: Release
1515
OutputDir: release
16+
Runtime: win-x86
1617

1718
steps:
1819
- name: 🧾 Checkout code
@@ -24,21 +25,23 @@ jobs:
2425
dotnet-version: '6.0.x'
2526

2627
- name: 🔁 Restore dependencies
27-
run: dotnet restore
28+
run: dotnet restore Ext4Explorer/Ext4Explorer.csproj
2829

29-
- name: 🛠️ Build and Publish (Self-Contained)
30+
- name: 🛠️ Build and Publish (Self-Contained x86)
3031
run: |
31-
dotnet publish Ext4Explorer.csproj `
32+
dotnet publish Ext4Explorer/Ext4Explorer.csproj `
3233
--configuration $env:Configuration `
33-
--runtime win-x86 `
34+
--runtime $env:Runtime `
3435
--self-contained true `
3536
--output $env:OutputDir `
3637
/p:PublishSingleFile=true `
3738
/p:IncludeNativeLibrariesForSelfExtract=true `
3839
/p:EnableCompressionInSingleFile=true
40+
shell: pwsh
3941

4042
- name: 📦 Zip Release Output
4143
run: Compress-Archive -Path "$env:OutputDir\*" -DestinationPath Ext4Explorer.zip
44+
shell: pwsh
4245

4346
- name: 🚀 Create GitHub Release and Upload Artifact
4447
uses: softprops/action-gh-release@v2

0 commit comments

Comments
 (0)