Merge pull request #216 from Scottish-Tech-Army/updateEASConfigFile #7
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
on: | |
push: | |
branches: | |
- main | |
name: π build Expo Go preview | |
jobs: | |
preview: | |
runs-on: ubuntu-latest | |
env: | |
STA_API_BASE_URL: https://the-sta.com | |
STA_API_VERSION: v1 | |
FEATURES_ENABLED: events,profileScreen | |
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 }}' |