Skip to content

Commit 9d991ad

Browse files
committed
better package names
1 parent 29721eb commit 9d991ad

File tree

1 file changed

+18
-17
lines changed

1 file changed

+18
-17
lines changed

.github/workflows/deploy-tauri.yml

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ on:
88

99
# 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.
1010
env:
11+
APP_VERSION: v0.0.1-alpha.1
1112
APPLE_DEVELOPMENT_TEAM: ${{ secrets.APPLE_TEAM_ID }}
1213
APPLE_ID: ${{ secrets.APPLE_ID }}
1314
APPLE_ID_PASSWORD: ${{ secrets.APPLE_ID_PASSWORD }}
@@ -64,17 +65,17 @@ jobs:
6465
matrix:
6566
include:
6667
# Arm based macs (M1 and above).
67-
- arch-type: aarch64
68-
bundle-type: aarch64-apple-darwin
68+
- bundle-id: aarch64
6969
rust-targets: aarch64-apple-darwin
70+
tauri-target: aarch64-apple-darwin
7071
# Intel based macs.
71-
- arch-type: x64
72-
bundle-type: x86_64-apple-darwin
72+
- bundle-id: x64
7373
rust-targets: x86_64-apple-darwin
74+
tauri-target: x86_64-apple-darwin
7475
# Universal
75-
- arch-type: universal
76-
bundle-type: universal-apple-darwin
76+
- bundle-id: universal
7777
rust-targets: aarch64-apple-darwin,x86_64-apple-darwin
78+
tauri-target: universal-apple-darwin
7879
runs-on: macos-latest
7980
env:
8081
APPLE_CERTIFICATE: ${{ secrets.APPLE_CERTIFICATE }}
@@ -100,25 +101,25 @@ jobs:
100101
pnpm build
101102
- name: Build macOS app
102103
run: |
103-
pnpm tauri build --verbose --target ${{ matrix.bundle-type }}
104+
pnpm tauri build --verbose --target ${{ matrix.tauri-target }}
104105
- name: Rename build artifacts
105106
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
110111
- name: Release
111112
uses: softprops/action-gh-release@v2
112113
with:
113114
draft: true
114115
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
119120
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 }}
122123
target_commitish: ${{ github.sha }}
123124
build-desktop-windows:
124125
runs-on: windows-latest

0 commit comments

Comments
 (0)