You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/workflows/eas-build.yml
+28-9Lines changed: 28 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -15,9 +15,19 @@
15
15
# Based on the ANDROID and IOS inputs, we trigger the build for the corresponding platform with the corresponding flags.
16
16
17
17
# 🚨 GITHUB SECRETS REQUIRED:
18
-
# - EXPO_TOKEN: Expo token to authenticate with EAS
19
-
# - You can get it from https://expo.dev/settings/access-tokens
20
-
18
+
# - EXPO_TOKEN: Expo token to authenticate with EAS to sync version numbers and submit the build.
19
+
# You can get it from https://expo.dev/settings/access-tokens
20
+
# - NEW_VERSION_NUMBER_PAT: A fine-grained Personal Access Token.
21
+
# This token is used to commit and push to protected branches.
22
+
# You can generate one from here: https://github.com/settings/tokens?type=beta
23
+
# Set the token name to something meaningful, e.g. "New version number PAT for <Project name>".
24
+
# Set the Repository access to "Only select repositories" and select this repository.
25
+
# Set the following Repo permissions:
26
+
# - Contents: Read & write (to commit and push)
27
+
# Make sure to add it to the repo secrets with the name NEW_VERSION_NUMBER_PAT:
28
+
# - Go to Repository Settings > Secrets and variables > Actions > New repository secret
29
+
# - Name: NEW_VERSION_NUMBER_PAT
30
+
# - Value: The Personal Access Token you created
21
31
name: 'EAS Build (Android & IOS) (EAS)'
22
32
23
33
on:
@@ -50,6 +60,8 @@ on:
50
60
jobs:
51
61
Build:
52
62
runs-on: ${{ matrix.os }}
63
+
permissions:
64
+
contents: write
53
65
environment: app-${{ inputs.environment }}
54
66
strategy:
55
67
fail-fast: false
@@ -61,12 +73,16 @@ jobs:
61
73
- platform: android
62
74
os: ubuntu-latest
63
75
steps:
64
-
- name: Check for EXPO_TOKEN
76
+
- name: Check if all required secrets exist
65
77
run: |
66
78
if [ -z "${{ secrets.EXPO_TOKEN }}" ]; then
67
79
echo "You must provide an EXPO_TOKEN secret linked to this project's Expo account in this repo's secrets. Learn more: https://docs.expo.dev/eas-update/github-actions"
68
80
exit 1
69
81
fi
82
+
if [ -z "${{ secrets.NEW_VERSION_NUMBER_PAT }}" ]; then
83
+
echo "echo "NEW_VERSION_NUMBER_PAT secret not found. Please create a fine-grained Personal Access Token following the instructions in the workflow file.""
0 commit comments