Skip to content

Commit

Permalink
Adds Expo Go preview build
Browse files Browse the repository at this point in the history
  • Loading branch information
roryf committed Nov 25, 2023
1 parent 786a0e6 commit 5042308
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
on:
push:
branches:
- main
- eas-build

name: πŸš€ build Expo Go preview

jobs:
preview:
runs-on: ubuntu-latest
env:
STA_API_BASE_URL: https://the-sta.com
STA_API_VERSION: v1
steps:
- name: πŸ— Setup repo
uses: actions/checkout@v4
- name: πŸ— Setup Node
uses: actions/setup-node@v4
with:
node-version: 18.14
cache: 'npm'
- name: πŸ— Setup EAS
uses: expo/expo-github-action@v7
with:
eas-version: latest
token: ${{ secrets.EXPO_ACCESS_TOKEN }}
- name: πŸ“¦ Install dependencies
run: npm ci
- name: πŸš€ Create preview
uses: expo/expo-github-action/preview@v8
id: preview
with:
command: eas update --auto
comment: false
# TODO
# - name: πŸ’¬ Comment in Slack
# uses: slackapi/[email protected]
# env:
# SLACK_BOT_TOKEN: ${{ secrets.SLACK_TOKEN }}
# with:
# channel-id: deployments
# slack-message: 'New deployment is ready!\n- Preview: ${{ steps.preview.outputs.qr }}'

0 comments on commit 5042308

Please sign in to comment.