Skip to content

Commit 7fd563a

Browse files
committed
zip linux and macOS seperatly
1 parent 1cf6bbf commit 7fd563a

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

.github/workflows/release.yml

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -125,13 +125,21 @@ jobs:
125125
mkdir -p ./artifacts/windows-latest
126126
powershell Compress-Archive -Path src-tauri/target/release/bundle/nsis/* -DestinationPath ./artifacts/windows-latest/windows-latest-artifacts.zip
127127
128-
# Zip all files/folders in /bundle and put in /artifacts/{os}/
129-
- name: Zip assets (Other)
130-
if: runner.os != 'Windows'
128+
# Zip all files/folders in /bundle/src-tauri/target/release/bundle/dmg and put in /artifacts/macos-latest/
129+
- name: Zip assets (macOS)
131130
shell: bash
131+
if: startsWith(runner.os, 'macOS')
132132
run: |
133-
mkdir -p ./artifacts/${{ matrix.os }}
134-
zip -r ./artifacts/${{ matrix.os }}/${{ matrix.os }}-artifacts.zip src-tauri/target/release/bundle/*
133+
mkdir -p ./artifacts/macos-latest
134+
zip -r ./artifacts/${{ matrix.os }}/${{ matrix.os }}-artifacts.zip src-tauri/target/release/bundle/dmg/*
135+
136+
# Zip only .deb file /bundle/src-tauri/target/release/bundle/deb and put in /artifacts/linux-latest/
137+
- name: Zip assets (Linux)
138+
shell: bash
139+
if: startsWith(runner.os, 'Linux')
140+
run: |
141+
mkdir -p ./artifacts/linux-latest
142+
zip -r ./artifacts/${{ matrix.os }}/${{ matrix.os }}-artifacts.zip src-tauri/target/release/bundle/deb/*.deb
135143
136144
- name: Upload artifact
137145
uses: actions/upload-artifact@v3

0 commit comments

Comments
 (0)