Skip to content

Commit 7cc12a2

Browse files
committed
Attempt to upload macOS assets to release
1 parent cdd5159 commit 7cc12a2

File tree

1 file changed

+27
-5
lines changed

1 file changed

+27
-5
lines changed

.github/workflows/deploy-tauri.yml

Lines changed: 27 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,14 @@ jobs:
6464
matrix:
6565
include:
6666
# Arm based macs (M1 and above).
67-
- tauri-target: aarch64-apple-darwin
67+
- bundle-type: aarch64-apple-darwin
68+
rust-targets: aarch64-apple-darwin
6869
# Intel based macs.
69-
- tauri-target: x86_64-apple-darwin
70+
- bundle-type: x86_64-apple-darwin
71+
rust-targets: x86_64-apple-darwin
72+
# Universal
73+
- bundle-type: universal-apple-darwin
74+
rust-targets: aarch64-apple-darwin,x86_64-apple-darwin
7075
runs-on: macos-latest
7176
env:
7277
APPLE_CERTIFICATE: ${{ secrets.APPLE_CERTIFICATE }}
@@ -76,7 +81,7 @@ jobs:
7681
- uses: actions/checkout@v4
7782
- uses: ./.github/actions/install-rust
7883
with:
79-
targets: aarch64-apple-darwin,x86_64-apple-darwin
84+
targets: ${{ matrix.rust-targets }}
8085
- uses: ./.github/actions/install-tauri
8186
- uses: ./.github/actions/install-xcode
8287
- uses: ./.github/actions/install-node
@@ -92,7 +97,24 @@ jobs:
9297
pnpm build
9398
- name: Build macOS app
9499
run: |
95-
pnpm tauri build --verbose --target ${{ matrix.tauri-target }}
100+
pnpm tauri build --verbose --target ${{ matrix.bundle-type }}
101+
- name: Release
102+
uses: softprops/action-gh-release@v2
103+
with:
104+
draft: true
105+
files: |
106+
./src-tauri/target/aarch64-apple-darwin/release/bundle/**/*.dmg
107+
./src-tauri/target/aarch64-apple-darwin/release/bundle/**/*.app
108+
./src-tauri/target/aarch64-apple-darwin/release/bundle/**/*.tar.gz
109+
./src-tauri/target/aarch64-apple-darwin/release/bundle/**/*.tar.gz.sig
110+
./src-tauri/target/x86_64-apple-darwin/release/bundle/**/*.dmg
111+
./src-tauri/target/x86_64-apple-darwin/release/bundle/**/*.app
112+
./src-tauri/target/x86_64-apple-darwin/release/bundle/**/*.tar.gz
113+
./src-tauri/target/x86_64-apple-darwin/release/bundle/**/*.tar.gz.sig
114+
make_latest: true
115+
name: App v0.0.1-alpha
116+
tag_name: app-v0.0.1-alpha
117+
target_commitish: ${{ github.sha }}
96118
build-desktop-windows:
97119
runs-on: windows-latest
98120
steps:
@@ -193,4 +215,4 @@ jobs:
193215
- build-mobile-android
194216
- build-mobile-ios
195217
steps:
196-
- run: echo "Release"
218+
- run: echo 'Release'

0 commit comments

Comments
 (0)