8
8
9
9
# This workflow will trigger on each push to the `release` branch to create or update a GitHub release, build your app, and upload the artifacts to the release.
10
10
env :
11
+ APP_VERSION : v0.0.1-alpha.1
11
12
APPLE_DEVELOPMENT_TEAM : ${{ secrets.APPLE_TEAM_ID }}
12
13
APPLE_ID : ${{ secrets.APPLE_ID }}
13
14
APPLE_ID_PASSWORD : ${{ secrets.APPLE_ID_PASSWORD }}
@@ -64,17 +65,17 @@ jobs:
64
65
matrix :
65
66
include :
66
67
# Arm based macs (M1 and above).
67
- - arch-type : aarch64
68
- bundle-type : aarch64-apple-darwin
68
+ - bundle-id : aarch64
69
69
rust-targets : aarch64-apple-darwin
70
+ tauri-target : aarch64-apple-darwin
70
71
# Intel based macs.
71
- - arch-type : x64
72
- bundle-type : x86_64-apple-darwin
72
+ - bundle-id : x64
73
73
rust-targets : x86_64-apple-darwin
74
+ tauri-target : x86_64-apple-darwin
74
75
# Universal
75
- - arch-type : universal
76
- bundle-type : universal-apple-darwin
76
+ - bundle-id : universal
77
77
rust-targets : aarch64-apple-darwin,x86_64-apple-darwin
78
+ tauri-target : universal-apple-darwin
78
79
runs-on : macos-latest
79
80
env :
80
81
APPLE_CERTIFICATE : ${{ secrets.APPLE_CERTIFICATE }}
@@ -100,25 +101,25 @@ jobs:
100
101
pnpm build
101
102
- name : Build macOS app
102
103
run : |
103
- pnpm tauri build --verbose --target ${{ matrix.bundle-type }}
104
+ pnpm tauri build --verbose --target ${{ matrix.tauri-target }}
104
105
- name : Rename build artifacts
105
106
run : |
106
- mv ./src-tauri/target/${{ matrix.bundle-type }}/release/bundle/dmg/octo_*_ ${{ matrix.arch-type }}.dmg ./octo -${{ matrix.arch-type }}.dmg
107
- mv ./src-tauri/target/${{ matrix.bundle-type }}/release/bundle/macos/octo.app ./octo-${{ matrix.arch-type }}.app
108
- mv ./src-tauri/target/${{ matrix.bundle-type }}/release/bundle/macos/octo.app.tar.gz ./octo-${{ matrix.arch-type }}.tar.gz
109
- mv ./src-tauri/target/${{ matrix.bundle-type }}/release/bundle/macos/octo.app.tar.gz.sig ./octo-${{ matrix.arch-type }}.tar.gz.sig
107
+ mv ./src-tauri/target/${{ matrix.tauri-target }}/release/bundle/macos/octo.app ./octo- ${{ env.APP_VERSION }}-${{ matrix.bundle-id }}.app
108
+ mv ./src-tauri/target/${{ matrix.tauri-target }}/release/bundle/macos/octo.app.tar.gz ./octo-${{ env.APP_VERSION }}-${{ matrix.bundle-id }}.app.tar.gz
109
+ mv ./src-tauri/target/${{ matrix.tauri-target }}/release/bundle/macos/octo.app.tar.gz.sig ./octo-${{ env.APP_VERSION }}-${{ matrix.bundle-id }}.app. tar.gz.sig
110
+ mv ./src-tauri/target/${{ matrix.tauri-target }}/release/bundle/dmg/octo_*.dmg ./octo-${{ env.APP_VERSION }}-${{ matrix.bundle-id }}.dmg
110
111
- name : Release
111
112
uses : softprops/action-gh-release@v2
112
113
with :
113
114
draft : true
114
115
files : |
115
- ./octo-${{ matrix.arch-type }}.dmg
116
- ./octo-${{ matrix.arch-type }}.app
117
- ./octo-${{ matrix.arch-type }}.tar.gz
118
- ./octo-${{ matrix.arch-type }}.tar.gz.sig
116
+ ./octo-${{ env.APP_VERSION }}-${{ matrix.bundle-id }}.app
117
+ ./octo-${{ env.APP_VERSION }}-${{ matrix.bundle-id }}.app.tar.gz
118
+ ./octo-${{ env.APP_VERSION }}-${{ matrix.bundle-id }}.app. tar.gz.sig
119
+ ./octo-${{ env.APP_VERSION }}-${{ matrix.bundle-id }}.dmg
119
120
make_latest : true
120
- name : App v0.0.1-alpha
121
- tag_name : app-v0.0.1-alpha
121
+ name : App ${{ env.APP_VERSION }}
122
+ tag_name : app-${{ env.APP_VERSION }}
122
123
target_commitish : ${{ github.sha }}
123
124
build-desktop-windows :
124
125
runs-on : windows-latest
0 commit comments