Skip to content

Commit ab4544a

Browse files
ci: only build iOS on new releases
iOS builds now only trigger when Release Please creates a new version, not on every push. This prevents duplicate TestFlight uploads. - release-please.yml: outputs release_created, calls build-ios-app - build-ios-app.yml: changed from push trigger to workflow_call - Manual dispatch still available for testing 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent f3befc6 commit ab4544a

2 files changed

Lines changed: 13 additions & 16 deletions

File tree

.github/workflows/build-ios-app.yml

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,9 @@
11
name: Build iOS App
22

33
on:
4-
push:
5-
branches: ['main', 'master']
6-
paths:
7-
- 'src-tauri/**/*.rs'
8-
- 'src-tauri/**/*.toml'
9-
- 'src-tauri/dist/**'
10-
- 'src-tauri/tauri.conf.json'
11-
- 'src-tauri/gen/apple/**/*.swift'
12-
- 'src-tauri/gen/apple/**/*.plist'
13-
- 'fastlane/**'
14-
- 'package.json'
15-
- 'package-lock.json'
16-
- '.github/workflows/build-ios-app.yml'
4+
# Called by release-please when a new version is released
5+
workflow_call:
6+
# Manual trigger for testing
177
workflow_dispatch:
188

199
jobs:

.github/workflows/release-please.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,21 @@ permissions:
1111
jobs:
1212
release-please:
1313
runs-on: ubuntu-latest
14+
outputs:
15+
release_created: ${{ steps.release.outputs.release_created }}
16+
tag_name: ${{ steps.release.outputs.tag_name }}
1417

1518
steps:
1619
- name: Release with release-please
20+
id: release
1721
uses: googleapis/release-please-action@v4
1822
with:
19-
# PAT with write access to the repository
2023
token: ${{ secrets.RELEASE_PLEASE_TOKEN }}
21-
# optional. customize path to release-please-config.json
2224
config-file: release-please-config.json
23-
# optional. customize path to .release-please-manifest.json
2425
manifest-file: .release-please-manifest.json
26+
27+
build-ios:
28+
needs: release-please
29+
if: ${{ needs.release-please.outputs.release_created == 'true' }}
30+
uses: ./.github/workflows/build-ios-app.yml
31+
secrets: inherit

0 commit comments

Comments
 (0)