Skip to content

Commit 19c6dcc

Browse files
committed
Render export options from TEAM_ID
1 parent 4a3288c commit 19c6dcc

File tree

3 files changed

+19
-1
lines changed

3 files changed

+19
-1
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>method</key>
6+
<string>app-store-connect</string>
7+
<key>signingStyle</key>
8+
<string>automatic</string>
9+
<key>teamID</key>
10+
<string>__TEAM_ID__</string>
11+
</dict>
12+
</plist>

.asc/workflow.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
"PROJECT_PATH": "FoundationLab.xcodeproj",
44
"SCHEME": "Foundation Lab",
55
"CONFIGURATION": "Release",
6-
"EXPORT_OPTIONS": ".asc/ExportOptions/TestFlight.plist"
6+
"EXPORT_OPTIONS_TEMPLATE": ".asc/ExportOptions/TestFlight.plist.template",
7+
"EXPORT_OPTIONS": ".asc/ExportOptions/TestFlight.generated.plist"
78
},
89
"before_all": "asc auth status --validate",
910
"workflows": {
@@ -18,6 +19,10 @@
1819
"name": "validate_inputs",
1920
"run": "for key in APP_ID TESTFLIGHT_GROUP TARGET_BUNDLE_ID TEAM_ID VERSION; do if [ -z \"${!key}\" ]; then echo \"$key is required\" >&2; exit 1; fi; done"
2021
},
22+
{
23+
"name": "render_export_options",
24+
"run": "sed \"s/__TEAM_ID__/$TEAM_ID/g\" \"$EXPORT_OPTIONS_TEMPLATE\" > \"$EXPORT_OPTIONS\" && plutil -lint \"$EXPORT_OPTIONS\" >/dev/null"
25+
},
2126
{
2227
"name": "resolve_next_build",
2328
"run": "asc builds next-build-number --app \"$APP_ID\" --version \"$VERSION\" --platform IOS --initial-build-number 1 --output json",

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ xcuserdata/
1414
*.dSYM
1515

1616
.asc/artifacts/
17+
.asc/ExportOptions/TestFlight.generated.plist
1718
.asc/runs/
1819

1920
## Playgrounds

0 commit comments

Comments
 (0)