@@ -63,18 +63,21 @@ jobs:
6363 python-version : " 3.12"
6464
6565 - name : Set up pip for Python
66+ shell : bash
6667 run : |
6768 python --version
6869 pip --version || python -m ensurepip --upgrade
6970 python -m pip install --upgrade pip
7071
7172 - name : Install dependencies
73+ shell : bash
7274 run : |
7375 corepack enable
7476 corepack prepare pnpm@latest --activate
7577 pnpm install-reqs
7678
7779 - name : Install system dependencies for Linux
80+ shell : bash
7881 if : runner.os == 'linux'
7982 run : |
8083 sudo apt-get update
9295 workspaces : " ./src-tauri -> target"
9396
9497 - name : Build icons
98+ shell : bash
9599 run : pnpm build:icons
96100
97101 - name : Build Python sidecar
@@ -110,6 +114,7 @@ jobs:
110114 # run: pnpm next build
111115
112116 - name : Build Tauri app
117+ shell : bash
113118 run : pnpm tauri build
114119
115120 - name : Set artifact path
@@ -122,11 +127,18 @@ jobs:
122127 echo "artifact_path=src-tauri/target/release/bundle/" >> $GITHUB_ENV
123128 fi
124129
130+ # Zip all files/folders in env.artifact_path and put in /artifacts/{os}/
131+ - name : Zip assets
132+ shell : bash
133+ run : |
134+ mkdir -p ./artifacts/${{ matrix.os }}
135+ zip -j ./artifacts/${{ matrix.os }}/${{ matrix.os }}-artifacts.zip ${{ env.artifact_path }}
136+
125137 - name : Upload artifact
126138 uses : actions/upload-artifact@v3
127139 with :
128140 name : ${{ matrix.os }}-artifact
129- path : ${{ env.artifact_path }}
141+ path : ./artifacts/ ${{ matrix.os }}/${{ matrix.os }}-artifacts.zip # upload from
130142
131143 upload_assets :
132144 name : Upload Assets to Release
@@ -154,35 +166,35 @@ jobs:
154166 name : windows-latest-artifact
155167 path : ./artifacts/windows
156168
157- - name : Upload Linux asset
169+ - name : Upload Linux asset archive
158170 if : always()
159171 uses : actions/upload-release-asset@v1
160172 env :
161173 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
162174 with :
163175 upload_url : ${{ needs.create_release.outputs.release_upload_url }}
164- asset_path : ./artifacts/ubuntu/tauri-python-sidecar_${{ github.ref_name }}_x86_x64_Linux-setup.AppImage
165- asset_name : tauri-python-sidecar_${{ github.ref_name }}_x86_x64_Linux -setup.AppImage
166- asset_content_type : application/octet-stream
176+ asset_path : ./artifacts/ubuntu/ubuntu-artifacts.zip # file location
177+ asset_name : tauri-python-sidecar_linux -setup.zip # display name on release page (not file name)
178+ asset_content_type : application/zip
167179
168- - name : Upload macOS asset
180+ - name : Upload macOS asset archive
169181 if : always()
170182 uses : actions/upload-release-asset@v1
171183 env :
172184 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
173185 with :
174186 upload_url : ${{ needs.create_release.outputs.release_upload_url }}
175- asset_path : ./artifacts/macos/tauri-python-sidecar_${{ github.ref_name }}_x86_x64_macOS-setup.dmg
176- asset_name : tauri-python-sidecar_${{ github.ref_name }}_x86_x64_macOS -setup.dmg
177- asset_content_type : application/octet-stream
187+ asset_path : ./artifacts/macos/macos-artifacts.zip # file location
188+ asset_name : tauri-python-sidecar_macos -setup.zip # display name on release page (not file name)
189+ asset_content_type : application/zip
178190
179- - name : Upload Windows asset
191+ - name : Upload Windows asset archive
180192 if : always()
181193 uses : actions/upload-release-asset@v1
182194 env :
183195 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
184196 with :
185197 upload_url : ${{ needs.create_release.outputs.release_upload_url }}
186- asset_path : ./artifacts/windows/tauri-python-sidecar_${{ github.ref_name }}_x86_x64_Windows-setup.exe
187- asset_name : tauri-python-sidecar_${{ github.ref_name }}_x86_x64_Windows -setup.exe
188- asset_content_type : application/octet-stream
198+ asset_path : ./artifacts/windows/windows-artifacts.zip # file location
199+ asset_name : tauri-python-sidecar_windows -setup.zip # display name on release page (not file name)
200+ asset_content_type : application/zip
0 commit comments