Skip to content

Commit eca28a2

Browse files
committed
fix mac updater release artifacts
1 parent c8ceb4d commit eca28a2

2 files changed

Lines changed: 12 additions & 2 deletions

File tree

.github/workflows/release.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ jobs:
5656

5757
steps:
5858
- uses: actions/checkout@v4
59+
with:
60+
ref: ${{ env.RELEASE_TAG }}
5961

6062
- name: Install Rust
6163
uses: dtolnay/rust-toolchain@stable
@@ -135,6 +137,8 @@ jobs:
135137

136138
steps:
137139
- uses: actions/checkout@v4
140+
with:
141+
ref: ${{ env.RELEASE_TAG }}
138142

139143
- name: Install Rust
140144
uses: dtolnay/rust-toolchain@stable
@@ -179,6 +183,8 @@ jobs:
179183
runs-on: ubuntu-latest
180184
steps:
181185
- uses: actions/checkout@v4
186+
with:
187+
ref: ${{ env.RELEASE_TAG }}
182188

183189
- name: Download all artifacts
184190
uses: actions/download-artifact@v4
@@ -205,13 +211,16 @@ jobs:
205211
publish-crate:
206212
name: Publish to crates.io
207213
needs: release
214+
if: ${{ github.event_name == 'push' }}
208215
runs-on: ubuntu-latest
209216
steps:
210217
- uses: actions/checkout@v4
218+
with:
219+
ref: ${{ env.RELEASE_TAG }}
211220
- uses: dtolnay/rust-toolchain@stable
212221
- name: Verify version matches tag
213222
run: |
214-
TAG="${GITHUB_REF#refs/tags/v}"
223+
TAG="${RELEASE_TAG#v}"
215224
TOML_VERSION=$(grep '^version' Cargo.toml | head -1 | sed 's/.*"\(.*\)".*/\1/')
216225
if [ "$TAG" != "$TOML_VERSION" ]; then
217226
echo "Tag v$TAG does not match Cargo.toml version $TOML_VERSION"
@@ -226,7 +235,7 @@ jobs:
226235
name: Update Homebrew Formula
227236
needs: release
228237
runs-on: ubuntu-latest
229-
if: ${{ !contains(github.ref, 'alpha') && !contains(github.ref, 'beta') && !contains(github.ref, 'rc') }}
238+
if: ${{ github.event_name == 'push' && !contains(env.RELEASE_TAG, 'alpha') && !contains(env.RELEASE_TAG, 'beta') && !contains(env.RELEASE_TAG, 'rc') }}
230239
steps:
231240
- name: Update Homebrew formula
232241
uses: mislav/bump-homebrew-formula-action@v3

tauri/tauri.conf.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
"bundle": {
3131
"active": true,
3232
"targets": [
33+
"app",
3334
"dmg",
3435
"nsis",
3536
"deb",

0 commit comments

Comments
 (0)