Deploy Android and iOS #9
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: Trigger Expo Build (Android) | |
on: | |
push: | |
tags: | |
- '**' | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
environment: production | |
permissions: | |
contents: read | |
steps: | |
- name: Clone repo | |
uses: actions/checkout@v3 | |
- name: Setup Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18.x | |
cache: yarn | |
- name: Setup EAS | |
uses: expo/expo-github-action@v8 | |
with: | |
eas-version: latest | |
expo-version: latest | |
token: ${{ secrets.EXPO_TOKEN }} | |
- name: Install dependencies | |
run: yarn install --frozen-lockfile | |
- name: Set eas.json file | |
uses: jossef/[email protected] | |
with: | |
file: eas.json | |
field: build.production.env.EXPO_PUBLIC_SETLISTFM_API_KEY | |
value: ${{ secrets.EXPO_PUBLIC_SETLISTFM_API_KEY }} | |
- name: Build app | |
run: eas build -p android --non-interactive --no-wait -m="GitHub Actions - Run $GITHUB_RUN_ID" |