Skip to content

Commit 17389f4

Browse files
Deploy every 90 days new alpha and beta build to prevent TestFlight builds from expiring (#1831)
Solves the following issue: https://discord.com/channels/545668860859252746/654060459833557003/1330836363591028838 Fixes #1813
1 parent fb262ec commit 17389f4

File tree

2 files changed

+20
-2
lines changed

2 files changed

+20
-2
lines changed

.github/workflows/alpha.yml

+4
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ concurrency:
1616
group: app-release
1717

1818
on:
19+
schedule:
20+
# TestFlight builds expire after 90 days. To ensure we have regular builds,
21+
# we run this workflow every 90 days.
22+
- cron: "0 0 1 */3 *"
1923
push:
2024
branches:
2125
- main

.github/workflows/beta.yml

+16-2
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ concurrency:
1616
group: app-release
1717

1818
on:
19+
schedule:
20+
# TestFlight builds expire after 90 days. To ensure we have regular builds,
21+
# we run this workflow every 90 days.
22+
- cron: "0 0 1 */3 *"
1923
workflow_dispatch:
2024
inputs:
2125
ios-changelog:
@@ -62,7 +66,9 @@ jobs:
6266
deploy-ios:
6367
# We skip the deployment if no changelog is provided because we assume that
6468
# nothing has changed in the iOS app and therefore no new version is needed.
65-
if: github.event.inputs.ios-changelog != ''
69+
#
70+
# For scheduled builds, a changelog is not required.
71+
if: github.event.inputs.ios-changelog != '' || github.event_name == 'schedule'
6672
runs-on: macos-15
6773
timeout-minutes: 120
6874
steps:
@@ -101,6 +107,9 @@ jobs:
101107
# When passing the changelog from GitHub Actions to the CLI, the line
102108
# breaks are escaped. We need to replace them with actual line breaks.
103109
CHANGELOG="${{ github.event.inputs.ios-changelog }}"
110+
if [ -z "$CHANGELOG" ]; then
111+
CHANGELOG="Scheduled build"
112+
fi
104113
CHANGELOG_WITH_NEW_LINES=$(echo -e "$CHANGELOG" | sed 's/\\n/\\n/g')
105114
106115
sz deploy app ios \
@@ -223,7 +232,9 @@ jobs:
223232
deploy-macos:
224233
# We skip the deployment if no changelog is provided because we assume that
225234
# nothing has changed in the macOS app and therefore no new version is needed.
226-
if: github.event.inputs.macos-changelog != ''
235+
#
236+
# For scheduled builds, a changelog is not required.
237+
if: github.event.inputs.macos-changelog != '' || github.event_name == 'schedule'
227238
runs-on: macos-15
228239
timeout-minutes: 60
229240
steps:
@@ -268,6 +279,9 @@ jobs:
268279
# When passing the changelog from GitHub Actions to the CLI, the line
269280
# breaks are escaped. We need to replace them with actual line breaks.
270281
CHANGELOG="${{ github.event.inputs.macos-changelog }}"
282+
if [ -z "$CHANGELOG" ]; then
283+
CHANGELOG="Scheduled build"
284+
fi
271285
CHANGELOG_WITH_NEW_LINES=$(echo -e "$CHANGELOG" | sed 's/\\n/\\n/g')
272286
273287
sz deploy app macos \

0 commit comments

Comments
 (0)