ci(package): extract repeated artifact paths into env var

Signed-off-by: GitHub <noreply@github.com>
This commit is contained in:
Fernando Fernández 2024-06-22 19:52:56 +00:00
parent 70a406dc15
commit f99680f873

View File

@ -48,6 +48,11 @@ jobs:
defaults:
run:
working-directory: packaging/tauri
env:
ARTIFACTS_PATH: |
${{ matrix.platform == 'ubuntu' && 'packaging/tauri/target/release/bundle/appimage_deb' || '' }}
${{ matrix.platform == 'macos' && 'packaging/tauri/target/release/bundle/macos' || '' }}
${{ matrix.platform == 'windows' && 'packaging/tauri/target/release/jellyfin-vue.exe' || '' }}
runs-on: ${{ matrix.platform }}-latest
steps:
@ -77,20 +82,14 @@ jobs:
- name: Create provenance attestation 🔏
uses: actions/attest-build-provenance@v1.3.2
with:
subject-path: |
${{ matrix.platform == 'ubuntu' && 'packaging/tauri/target/release/bundle/appimage_deb' || '' }}
${{ matrix.platform == 'macos' && 'packaging/tauri/target/release/bundle/macos' || '' }}
${{ matrix.platform == 'windows' && 'packaging/tauri/target/release/jellyfin-vue.exe' || '' }}
subject-path: ${{ env.ARTIFACTS_PATH }}
- name: Upload built application artifact ⬆️🐧🍎🪟
uses: actions/upload-artifact@v4.3.3
with:
compression-level: 0
name: jellyfin-vue_${{ matrix.platform }}
path: |
${{ matrix.platform == 'ubuntu' && 'packaging/tauri/target/release/bundle/appimage_deb' || '' }}
${{ matrix.platform == 'macos' && 'packaging/tauri/target/release/bundle/macos' || '' }}
${{ matrix.platform == 'windows' && 'packaging/tauri/target/release/jellyfin-vue.exe' || '' }}
path: ${{ env.ARTIFACTS_PATH }}
docker_inputs:
name: Prepare Docker build variables 🏷️🐳