mirror of
https://github.com/MrPatben8/konduktor.git
synced 2026-11-27 18:22:53 +01:00
Github Actions: simplified upload artifact structure
This commit is contained in:
1 parent
179ea69633
commit
6504623aac
1 file changed
+20
-5
@@ -89,15 +89,30 @@ jobs:
|
|||||||
working-directory: frontend
|
working-directory: frontend
|
||||||
run: npx tauri build
|
run: npx tauri build
|
||||||
|
|
||||||
- name: Upload installers
|
# Stage the single installer per OS into a flat folder. Uploading one
|
||||||
|
# directory (not multiple bundle subpaths) keeps the artifact root at
|
||||||
|
# ./installer, so the zip holds the bare file — no nested dmg/ or nsis/
|
||||||
|
# folder. We ship the DMG on macOS and the NSIS -setup.exe on Windows
|
||||||
|
# (the .msi is intentionally left out).
|
||||||
|
- name: Stage installer (macOS)
|
||||||
|
if: runner.os == 'macOS'
|
||||||
|
run: |
|
||||||
|
mkdir -p installer
|
||||||
|
cp frontend/src-tauri/target/release/bundle/dmg/*.dmg installer/
|
||||||
|
|
||||||
|
- name: Stage installer (Windows)
|
||||||
|
if: runner.os == 'Windows'
|
||||||
|
shell: pwsh
|
||||||
|
run: |
|
||||||
|
New-Item -ItemType Directory -Force installer | Out-Null
|
||||||
|
Copy-Item frontend/src-tauri/target/release/bundle/nsis/*-setup.exe installer/
|
||||||
|
|
||||||
|
- name: Upload installer
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: konduktor-${{ runner.os }}
|
name: konduktor-${{ runner.os }}
|
||||||
if-no-files-found: error
|
if-no-files-found: error
|
||||||
path: |
|
path: installer/*
|
||||||
frontend/src-tauri/target/release/bundle/dmg/*.dmg
|
|
||||||
frontend/src-tauri/target/release/bundle/msi/*.msi
|
|
||||||
frontend/src-tauri/target/release/bundle/nsis/*-setup.exe
|
|
||||||
|
|
||||||
# Gather both platforms' installers and publish them as a single new Release.
|
# Gather both platforms' installers and publish them as a single new Release.
|
||||||
# Runs once, after both builds succeed, so the two matrix jobs never race to
|
# Runs once, after both builds succeed, so the two matrix jobs never race to
|
||||||
|
|||||||
Reference in new issue
Block a user