-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create eas_preview.yml in default branch
workflow_run will only trigger a workflow run if the workflow file is on the default branch.
- Loading branch information
Showing
1 changed file
with
38 additions
and
0 deletions.
There are no files selected for viewing
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
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 |