Update environment name #6
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build iOS (Development) | |
| on: | |
| push: | |
| branches: [deployment] | |
| pull_request: | |
| branches: [main, integration] | |
| workflow_dispatch: # Manual trigger | |
| jobs: | |
| build-ios-dev: | |
| name: Build iOS Development Build | |
| runs-on: macos-latest | |
| environment: develop | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20' | |
| cache: 'npm' | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Setup EAS CLI | |
| run: npm install -g eas-cli | |
| - name: Build iOS Preview | |
| run: eas build --platform ios --profile preview --non-interactive | |
| env: | |
| EXPO_TOKEN: ${{ secrets.EXPO_TOKEN }} | |
| - name: Download IPA | |
| run: | | |
| # Get the latest build URL | |
| BUILD_ID=$(eas build:list --platform ios --limit 1 --json --non-interactive | jq -r '.[0].id') | |
| echo "Latest build ID: $BUILD_ID" | |
| # Download the artifact | |
| eas build:download --id $BUILD_ID --output ./build.ipa | |
| env: | |
| EXPO_TOKEN: ${{ secrets.EXPO_TOKEN }} | |
| - name: Upload IPA artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: ios-preview-build | |
| path: ./build.ipa | |
| retention-days: 7 | |
| - name: Comment build status | |
| if: github.event_name == 'pull_request' | |
| uses: actions/github-script@v7 | |
| with: | |
| script: | | |
| github.rest.issues.createComment({ | |
| issue_number: context.issue.number, | |
| owner: context.repo.owner, | |
| repo: context.repo.repo, | |
| body: '✅ iOS preview build complete! Download from Actions artifacts or https://expo.dev' | |
| }) |