Skip to content

Commit

Permalink
Create eas_preview.yml in default branch
Browse files Browse the repository at this point in the history
workflow_run will only trigger a workflow run if the workflow file is on the default branch.
  • Loading branch information
KKA11010 committed Aug 27, 2023
1 parent 435d08b commit 2c37058
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/eas_preview.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: eas preview build

on:
workflow_run:
workflows: [Node.js CI]
types:
- completed

jobs:
build:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }}
env:
BUGSNAG_API_KEY: ${{ secrets.BUGSNAG_API_KEY }}
steps:
- name: πŸ— Setup repo
uses: actions/checkout@v3

- name: πŸ— Setup Node
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
token: ${{ secrets.EXPO_TOKEN }}

- name: πŸ“¦ Install dependencies
run: npm install

- name: πŸš€ Build android preview apk
run: npm run build:ci:preview:android

- name: πŸš€ Build ios preview ipa
run: npm run build:ci:preview:ios

0 comments on commit 2c37058

Please sign in to comment.