From 26949e14d3117b323fa6e40e1b83ef03f73ee05a Mon Sep 17 00:00:00 2001 From: arafat-alim Date: Wed, 30 Oct 2024 14:46:10 +0530 Subject: [PATCH] =?UTF-8?q?=E2=9A=92=EF=B8=8F=20GH=20Actions=20Issue=20fix?= =?UTF-8?q?:=20Added=20env=20for=20access=20token.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../workflows/gh-actions-expo-build-staging.yml | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/.github/workflows/gh-actions-expo-build-staging.yml b/.github/workflows/gh-actions-expo-build-staging.yml index e6d563c..219b7d2 100644 --- a/.github/workflows/gh-actions-expo-build-staging.yml +++ b/.github/workflows/gh-actions-expo-build-staging.yml @@ -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