Skip to content

Commit

Permalink
⚒️ GH Actions Issue fix: Added env for access token.
Browse files Browse the repository at this point in the history
  • Loading branch information
Arafat-alim committed Oct 30, 2024
1 parent 3a4f898 commit 26949e1
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions .github/workflows/gh-actions-expo-build-staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,23 +35,19 @@ jobs:
- name: Install Expo CLI and EAS CLI
run: npm install -g expo-cli eas-cli

# Step 6: Authenticate with EAS using the token
- name: Authenticate with EAS
env:
EXPO_TOKEN: ${{ secrets.EXPO_TOKEN }}
run: echo "$EXPO_TOKEN" | eas login --token -

# Step 7: Install project dependencies with Yarn
# Step 6: Install project dependencies with Yarn
- name: Install dependencies
run: yarn install --frozen-lockfile

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

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

0 comments on commit 26949e1

Please sign in to comment.