EAS Build - Requested by @josh-leyshon (Run #2) #2
This file contains 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: EAS Build | |
run-name: '${{ github.workflow }} - Requested by @${{github.actor}} (Run #${{github.run_number}})' | |
on: | |
issue_comment: | |
types: [created] | |
jobs: | |
build-android-preview: | |
name: Build Android (Preview) | |
if: | | |
${{ | |
github.event.issue.pull_request && | |
github.event.comment.user.login == 'josh-leyshon' && | |
contains(github.event.comment.body, '🏗 build-android-preview') | |
}} | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18.x | |
cache: npm | |
- name: Setup EAS | |
uses: expo/expo-github-action@v8 | |
with: | |
eas-version: latest | |
packager: npm | |
token: ${{ secrets.EXPO_TOKEN }} | |
- name: Install dependencies | |
run: npm ci | |
- name: 🏗 Build on EAS | |
run: eas build --platform android --profile preview --non-interactive |