@daemux/store-automator 0.10.73 → 0.10.74
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude-plugin/marketplace.json +2 -2
- package/package.json +1 -1
- package/plugins/store-automator/.claude-plugin/plugin.json +1 -1
- package/templates/ci.config.yaml.template +5 -0
- package/templates/github/IOS_NATIVE_CI_SETUP.md +80 -0
- package/templates/github/workflows/deploy.yml +18 -0
- package/templates/ios-native-ci.config.yaml.template +30 -0
- package/templates/github/workflows/ios-native-release.yml +0 -66
|
@@ -5,14 +5,14 @@
|
|
|
5
5
|
},
|
|
6
6
|
"metadata": {
|
|
7
7
|
"description": "App Store & Google Play automation for Flutter apps",
|
|
8
|
-
"version": "0.10.
|
|
8
|
+
"version": "0.10.74"
|
|
9
9
|
},
|
|
10
10
|
"plugins": [
|
|
11
11
|
{
|
|
12
12
|
"name": "store-automator",
|
|
13
13
|
"source": "./plugins/store-automator",
|
|
14
14
|
"description": "3 agents for app store publishing: reviewer, meta-creator, media-designer",
|
|
15
|
-
"version": "0.10.
|
|
15
|
+
"version": "0.10.74",
|
|
16
16
|
"keywords": [
|
|
17
17
|
"flutter",
|
|
18
18
|
"app-store",
|
package/package.json
CHANGED
|
@@ -57,3 +57,8 @@ web:
|
|
|
57
57
|
jurisdiction: "State of California, United States"
|
|
58
58
|
app_store_url: ""
|
|
59
59
|
google_play_url: ""
|
|
60
|
+
|
|
61
|
+
# -----------------------------------------------------------------------------
|
|
62
|
+
# For native iOS apps (Swift/SwiftUI without Flutter), use
|
|
63
|
+
# ios-native-ci.config.yaml.template instead of this file.
|
|
64
|
+
# -----------------------------------------------------------------------------
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
# iOS Native TestFlight CI — Setup Guide
|
|
2
|
+
|
|
3
|
+
Drop-in TestFlight automation for native Swift/SwiftUI iOS apps. One workflow, one config file, one credential file. All logic lives in the shared composite action `daemux/daemux-plugins/.github/actions/ios-native-testflight`.
|
|
4
|
+
|
|
5
|
+
## Prerequisites
|
|
6
|
+
|
|
7
|
+
- **Private GitHub repo** (holds the ASC API key `.p8` file).
|
|
8
|
+
- **Apple Developer Program** membership with an App Store Connect user that can create API keys.
|
|
9
|
+
- **ASC API Key** with `App Manager` role, downloaded as `AuthKey_<KEY_ID>.p8` (Apple lets you download this exactly once).
|
|
10
|
+
- Xcode project builds locally on macOS 15 / Xcode 16.
|
|
11
|
+
|
|
12
|
+
## Step 1 — Copy the workflow
|
|
13
|
+
|
|
14
|
+
Copy `.github/workflows/deploy.yml` verbatim from this template. No edits required. It triggers on push to `main` and via `workflow_dispatch`.
|
|
15
|
+
|
|
16
|
+
## Step 2 — Copy `ci.config.yaml`
|
|
17
|
+
|
|
18
|
+
Copy `ios-native-ci.config.yaml.template` to your repo root as `ci.config.yaml`. Fill in:
|
|
19
|
+
|
|
20
|
+
- `app.bundle_id` — REQUIRED (must match your App Store Connect app record).
|
|
21
|
+
- `xcode.scheme` — REQUIRED (the shared scheme the CI should archive).
|
|
22
|
+
|
|
23
|
+
Every other field has a sensible default. `xcode.project` auto-detects if there is exactly one `*.xcodeproj` at the repo root. `app.app_store_apple_id` is auto-discovered via the ASC API from the bundle id.
|
|
24
|
+
|
|
25
|
+
## Step 3 — Drop in the ASC API key
|
|
26
|
+
|
|
27
|
+
Rename the downloaded key to include both the key id and the issuer uuid, then put it under `creds/`:
|
|
28
|
+
|
|
29
|
+
```
|
|
30
|
+
creds/AuthKey_<KEY_ID>_Issuer_<ISSUER_UUID>.p8
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
Example: `creds/AuthKey_5NBDY6YXJ6_Issuer_69a6de77-xxxx-xxxx-xxxx-xxxxxxxxxxxx.p8`.
|
|
34
|
+
|
|
35
|
+
The composite action parses the key id and issuer id from the filename — no GitHub secrets to configure.
|
|
36
|
+
|
|
37
|
+
## Step 4 — Register the app in App Store Connect (one-time)
|
|
38
|
+
|
|
39
|
+
App Store Connect requires a human-in-the-loop 2FA step the first time. Either:
|
|
40
|
+
|
|
41
|
+
- Run `fastlane create_app_ios` locally with `APPLE_ID`, `BUNDLE_ID`, `APP_NAME` exported, or
|
|
42
|
+
- Create the app manually in the App Store Connect web UI (My Apps → + → New App).
|
|
43
|
+
|
|
44
|
+
Subsequent builds need neither — the ASC API key handles everything.
|
|
45
|
+
|
|
46
|
+
## Step 5 — MARKETING_VERSION
|
|
47
|
+
|
|
48
|
+
Leave your Xcode project's `MARKETING_VERSION` at `1.0` initially. CI auto-rolls the marketing version forward (patch bump) whenever the prior version hits `READY_FOR_SALE` in App Store Connect. Until then, the pipeline keeps bumping the build number against the current marketing version.
|
|
49
|
+
|
|
50
|
+
## Step 6 — Push to `main`
|
|
51
|
+
|
|
52
|
+
```bash
|
|
53
|
+
git add .github/workflows/deploy.yml ci.config.yaml creds/AuthKey_*.p8
|
|
54
|
+
git commit -m "ci: add iOS TestFlight pipeline"
|
|
55
|
+
git push origin main
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
GitHub Actions triggers the workflow. On success, the build appears in TestFlight within 5–15 minutes (Apple processing delay).
|
|
59
|
+
|
|
60
|
+
## Troubleshooting
|
|
61
|
+
|
|
62
|
+
| Error | Likely Cause | Fix |
|
|
63
|
+
|-------|--------------|-----|
|
|
64
|
+
| `No ASC key found in creds/` | File missing or misnamed | Filename must match `AuthKey_<KEY_ID>_Issuer_<ISSUER_UUID>.p8` exactly |
|
|
65
|
+
| `No ASC app found for bundle <id>` | App not yet registered in ASC | Run Step 4 (create the app record) |
|
|
66
|
+
| `MARKETING_VERSION not set` | Missing in `.pbxproj` | Set `MARKETING_VERSION = 1.0;` in your target's build settings |
|
|
67
|
+
| Apple refuses new version | Prior version not in `READY_FOR_SALE` | Let the existing version finish review, or manually bump `MARKETING_VERSION` in Xcode |
|
|
68
|
+
| `Scheme not found` | Scheme not shared | In Xcode: Product → Scheme → Manage Schemes → tick "Shared", commit `*.xcscheme` |
|
|
69
|
+
|
|
70
|
+
## Credential rotation
|
|
71
|
+
|
|
72
|
+
ASC API keys can be revoked at any time. Rotate via:
|
|
73
|
+
|
|
74
|
+
```bash
|
|
75
|
+
rm creds/AuthKey_OLD*.p8
|
|
76
|
+
cp ~/Downloads/AuthKey_NEW_*.p8 creds/AuthKey_NEW_Issuer_<ISSUER_UUID>.p8
|
|
77
|
+
git add creds/
|
|
78
|
+
git commit -m "ci: rotate ASC API key"
|
|
79
|
+
git push
|
|
80
|
+
```
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
name: iOS Deploy
|
|
2
|
+
on:
|
|
3
|
+
push:
|
|
4
|
+
branches: [main]
|
|
5
|
+
paths-ignore: ['**/*.md', '.gitignore']
|
|
6
|
+
workflow_dispatch:
|
|
7
|
+
|
|
8
|
+
concurrency:
|
|
9
|
+
group: ios-deploy-${{ github.ref }}
|
|
10
|
+
cancel-in-progress: true
|
|
11
|
+
|
|
12
|
+
jobs:
|
|
13
|
+
deploy:
|
|
14
|
+
runs-on: macos-15
|
|
15
|
+
timeout-minutes: 60
|
|
16
|
+
steps:
|
|
17
|
+
- uses: actions/checkout@v4
|
|
18
|
+
- uses: daemux/daemux-plugins/.github/actions/ios-native-testflight@main
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# iOS TestFlight CI configuration — read by daemux/daemux-plugins/.github/actions/ios-native-testflight
|
|
2
|
+
# Place this at the repo root as ci.config.yaml.
|
|
3
|
+
# Also place your ASC API key at creds/AuthKey_<KEY_ID>_Issuer_<ISSUER_UUID>.p8
|
|
4
|
+
|
|
5
|
+
app:
|
|
6
|
+
bundle_id: "com.example.myapp" # REQUIRED
|
|
7
|
+
team_id: "ABCDE12345" # optional (used for manual signing)
|
|
8
|
+
app_store_apple_id: "" # optional — auto-discovered via ASC API by bundle_id
|
|
9
|
+
|
|
10
|
+
xcode:
|
|
11
|
+
project: "" # auto-detected if exactly one *.xcodeproj at root
|
|
12
|
+
workspace: "" # wins over project when set
|
|
13
|
+
scheme: "MyApp" # REQUIRED — no safe auto-detect
|
|
14
|
+
configuration: "Release" # default: Release
|
|
15
|
+
profile_name: "" # default: "<scheme> CI"
|
|
16
|
+
|
|
17
|
+
ios:
|
|
18
|
+
uses_non_exempt_encryption: false # false | true | "" to skip write
|
|
19
|
+
|
|
20
|
+
testflight:
|
|
21
|
+
whats_new: |
|
|
22
|
+
- Improved performance
|
|
23
|
+
- Bug fixes
|
|
24
|
+
- Enhanced security
|
|
25
|
+
locale: "en-US"
|
|
26
|
+
|
|
27
|
+
ci:
|
|
28
|
+
run_tests: false
|
|
29
|
+
test_command: "" # optional
|
|
30
|
+
test_destination: "platform=iOS Simulator,name=iPhone 15"
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
name: iOS Deploy
|
|
2
|
-
|
|
3
|
-
# Native-Swift iOS release pipeline. On PRs and non-main branches, runs the
|
|
4
|
-
# simulator test suite (build-only, no signing). On push to main, runs tests,
|
|
5
|
-
# archives the app, and uploads to TestFlight via the App Store Connect API.
|
|
6
|
-
#
|
|
7
|
-
# Required repository secrets (for upload, main branch only):
|
|
8
|
-
# ASC_KEY_ID App Store Connect API key id (e.g. "5NBDY6YXJ6")
|
|
9
|
-
# ASC_ISSUER_ID App Store Connect API issuer id (uuid)
|
|
10
|
-
# ASC_KEY_P8 Full contents of the AuthKey_*.p8 file
|
|
11
|
-
#
|
|
12
|
-
# Edit the `with:` blocks below to match your project.
|
|
13
|
-
|
|
14
|
-
on:
|
|
15
|
-
push:
|
|
16
|
-
branches: [main]
|
|
17
|
-
pull_request:
|
|
18
|
-
branches: [main]
|
|
19
|
-
workflow_dispatch:
|
|
20
|
-
|
|
21
|
-
concurrency:
|
|
22
|
-
group: ios-${{ github.workflow }}-${{ github.ref }}
|
|
23
|
-
cancel-in-progress: false
|
|
24
|
-
|
|
25
|
-
jobs:
|
|
26
|
-
# PRs and non-main pushes: build + test only, no signing or upload.
|
|
27
|
-
build-and-test:
|
|
28
|
-
if: ${{ github.event_name == 'pull_request' || (github.event_name == 'push' && github.ref != 'refs/heads/main') }}
|
|
29
|
-
runs-on: macos-latest
|
|
30
|
-
timeout-minutes: 45
|
|
31
|
-
steps:
|
|
32
|
-
- uses: actions/checkout@v4
|
|
33
|
-
|
|
34
|
-
- uses: daemux/daemux-plugins/.github/actions/ios-native-testflight@main
|
|
35
|
-
with:
|
|
36
|
-
project: MyApp.xcodeproj
|
|
37
|
-
scheme: MyApp
|
|
38
|
-
bundle-id: com.example.myapp
|
|
39
|
-
team-id: ABCDE12345
|
|
40
|
-
app-store-apple-id: "1234567890"
|
|
41
|
-
run-tests: "true"
|
|
42
|
-
archive: "false"
|
|
43
|
-
upload: "false"
|
|
44
|
-
|
|
45
|
-
# Main branch: test + archive + upload to TestFlight.
|
|
46
|
-
deploy:
|
|
47
|
-
if: ${{ github.event_name == 'workflow_dispatch' || (github.event_name == 'push' && github.ref == 'refs/heads/main') }}
|
|
48
|
-
runs-on: macos-latest
|
|
49
|
-
timeout-minutes: 60
|
|
50
|
-
steps:
|
|
51
|
-
- uses: actions/checkout@v4
|
|
52
|
-
|
|
53
|
-
- uses: daemux/daemux-plugins/.github/actions/ios-native-testflight@main
|
|
54
|
-
with:
|
|
55
|
-
project: MyApp.xcodeproj
|
|
56
|
-
scheme: MyApp
|
|
57
|
-
bundle-id: com.example.myapp
|
|
58
|
-
team-id: ABCDE12345
|
|
59
|
-
app-store-apple-id: "1234567890"
|
|
60
|
-
run-tests: "true"
|
|
61
|
-
archive: "true"
|
|
62
|
-
upload: "true"
|
|
63
|
-
env:
|
|
64
|
-
ASC_KEY_ID: ${{ secrets.ASC_KEY_ID }}
|
|
65
|
-
ASC_ISSUER_ID: ${{ secrets.ASC_ISSUER_ID }}
|
|
66
|
-
ASC_KEY_P8: ${{ secrets.ASC_KEY_P8 }}
|