Skip to content

Commit 693908e

Browse files
committed
fix workflow (again)
1 parent dd50c5d commit 693908e

File tree

2 files changed

+11
-25
lines changed

2 files changed

+11
-25
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -74,16 +74,11 @@ jobs:
7474
- name: Build GUI
7575
run: dotnet publish -c Release --no-self-contained --no-restore -o ./win-x64 -r win-x64 ./Il2CppInspector.Redux.GUI/Il2CppInspector.Redux.GUI.csproj
7676

77-
- name: Zip artifacts
78-
shell: pwsh
79-
run: |
80-
Compress-Archive -Path ./win-x64/* -DestinationPath ./win-x64.zip
81-
8277
- name: Upload GUI Artifact
8378
uses: actions/upload-artifact@v4
8479
with:
8580
name: Il2CppInspectorRedux.GUI
86-
path: ./win-x64.zip
81+
path: ./win-x64
8782

8883
build-redux-cli:
8984
runs-on: ubuntu-latest
@@ -122,16 +117,11 @@ jobs:
122117
- name: Build & Publish
123118
run: dotnet publish -c Release --no-self-contained --no-restore -o ./${{ matrix.rid }} -r ${{ matrix.rid }} ./Il2CppInspector.Redux.CLI/Il2CppInspector.Redux.CLI.csproj
124119

125-
- name: Zip artifacts
126-
shell: pwsh
127-
run: |
128-
Compress-Archive -Path ./${{ matrix.rid }}/* -DestinationPath ./${{ matrix.rid }}.zip
129-
130120
- name: Upload artifacts
131121
uses: actions/upload-artifact@v4
132122
with:
133123
name: Il2CppInspectorRedux.CLI-${{ matrix.rid }}
134-
path: ./${{ matrix.rid }}.zip
124+
path: ./${{ matrix.rid }}
135125

136126
build-old-gui:
137127
runs-on: windows-latest
@@ -164,16 +154,11 @@ jobs:
164154
- name: Build GUI
165155
run: dotnet publish -c Release --no-self-contained --no-restore -o ./win-x64 -r win-x64 ./Il2CppInspector.GUI/Il2CppInspector.GUI.csproj
166156

167-
- name: Zip artifacts
168-
shell: pwsh
169-
run: |
170-
Compress-Archive -Path ./win-x64/* -DestinationPath ./win-x64.zip
171-
172157
- name: Upload GUI artifact
173158
uses: actions/upload-artifact@v4
174159
with:
175160
name: Il2CppInspectorRedux.Legacy.GUI
176-
path: ./win-x64.zip
161+
path: ./win-x64
177162

178163
build-old-cli:
179164
runs-on: ubuntu-latest
@@ -210,13 +195,8 @@ jobs:
210195
- name: Build & Publish
211196
run: dotnet publish -c Release --no-self-contained --no-restore -o ./${{ matrix.rid }} -r ${{ matrix.rid }} ./Il2CppInspector.CLI/Il2CppInspector.CLI.csproj
212197

213-
- name: Zip artifacts
214-
shell: pwsh
215-
run: |
216-
Compress-Archive -Path ./${{ matrix.rid }}/* -DestinationPath ./${{ matrix.rid }}.zip
217-
218198
- name: Upload artifacts
219199
uses: actions/upload-artifact@v4
220200
with:
221201
name: Il2CppInspectorRedux.Legacy.CLI-${{ matrix.rid }}
222-
path: ./${{ matrix.rid }}.zip
202+
path: ./${{ matrix.rid }}

.github/workflows/release.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,14 @@ jobs:
1717
uses: actions/download-artifact@v7
1818
with:
1919
path: ./artifacts/
20+
- name: Create artifact ZIPs
21+
shell: pwsh
22+
working-directory: ./artifacts
23+
run: |
24+
'Get-ChildItem -Path . -Directory | ForEach-Object { Compress-Archive -Path $_.Name -DestinationPath "$($_.Name).zip" }'
25+
'Get-ChildItem -Path . -Directory | ForEach-Object { Remove-Item $_.Name -Recurse }'
2026
- name: Make release
21-
uses: softprops/action-gh-release@v2
27+
uses: softprops/action-gh-release@v2.4.2
2228
with:
2329
files: ./artifacts/**/*
2430
name: Il2CppInspectorRedux ${{ github.ref_name }}

0 commit comments

Comments
 (0)