Skip to content

Commit 26949e1

Browse files
committed
⚒️ GH Actions Issue fix: Added env for access token.
1 parent 3a4f898 commit 26949e1

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

.github/workflows/gh-actions-expo-build-staging.yml

+5-9
Original file line numberDiff line numberDiff line change
@@ -35,23 +35,19 @@ jobs:
3535
- name: Install Expo CLI and EAS CLI
3636
run: npm install -g expo-cli eas-cli
3737

38-
# Step 6: Authenticate with EAS using the token
39-
- name: Authenticate with EAS
40-
env:
41-
EXPO_TOKEN: ${{ secrets.EXPO_TOKEN }}
42-
run: echo "$EXPO_TOKEN" | eas login --token -
43-
44-
# Step 7: Install project dependencies with Yarn
38+
# Step 6: Install project dependencies with Yarn
4539
- name: Install dependencies
4640
run: yarn install --frozen-lockfile
4741

48-
# Step 8: Build the Android APK using EAS
42+
# Step 7: Build the Android APK using EAS with EXPO_TOKEN for authentication
4943
- name: Build Android app
44+
env:
45+
EXPO_TOKEN: ${{ secrets.EXPO_TOKEN }}
5046
run: |
5147
eas build --platform android --profile preview --local --output ${{ github.workspace }}/app-release.apk
5248
continue-on-error: false # Ensures the job fails on build error
5349

54-
# Step 9: Upload the generated APK file as an artifact for download
50+
# Step 8: Upload the generated APK file as an artifact for download
5551
- name: Upload APK artifact
5652
if: success() # Run only if the build step succeeded
5753
uses: actions/upload-artifact@v4 # Updated to v4 to avoid deprecation

0 commit comments

Comments
 (0)