Workflow fix: Mac zip file and publish directly

This commit is contained in:
2026-04-08 02:00:44 +02:00
parent 1ba5d1655b
commit 966e0eeb52
2 changed files with 23 additions and 25 deletions
+22 -24
View File
@@ -55,43 +55,41 @@ jobs:
echo "App path: $APP_PATH"
# Ad-hoc sign (no Apple account needed)
# Extract app name (without .app)
APP_NAME=$(basename "$APP_PATH" .app)
echo "App name: $APP_NAME"
# Ad-hoc sign
codesign --deep --force --sign - "$APP_PATH"
# Zip correctly (VERY important for macOS)
ditto -c -k --keepParent "$APP_PATH" Tauri-macOS.zip
# Zip using app name
ditto -c -k --keepParent "$APP_PATH" "$APP_NAME.zip"
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: tauri-build-${{ matrix.os }}
path: |
src-tauri/target/release/bundle/**/*.AppImage
src-tauri/target/release/bundle/**/*.msi
src-tauri/target/release/bundle/**/*.exe
src-tauri/target/release/bundle/**/*.deb
src-tauri/target/release/bundle/**/*.rpm
*.zip
- name: Upload to GitHub Release
if: github.event_name == 'release'
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ github.event.release.tag_name }}
files: |
src-tauri/target/release/bundle/**/*.AppImage
src-tauri/target/release/bundle/**/*.dmg
src-tauri/target/release/bundle/**/*.msi
src-tauri/target/release/bundle/**/*.exe
src-tauri/target/release/bundle/**/*.deb
src-tauri/target/release/bundle/**/*.rpm
Tauri-macOS.zip
release:
name: Upload to GitHub Release
needs: build
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Download all artifacts
uses: actions/download-artifact@v4
with:
path: artifacts
- name: Upload to Release
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ github.event.release.tag_name }}
files: artifacts/**/*
*.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}