From 2c37058c161cfc77800957032ac4498f6b9c5a48 Mon Sep 17 00:00:00 2001 From: First-Terraner <40151034+KKA11010@users.noreply.github.com> Date: Sun, 27 Aug 2023 15:24:12 +0200 Subject: [PATCH] Create eas_preview.yml in default branch workflow_run will only trigger a workflow run if the workflow file is on the default branch. --- .github/workflows/eas_preview.yml | 38 +++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/eas_preview.yml diff --git a/.github/workflows/eas_preview.yml b/.github/workflows/eas_preview.yml new file mode 100644 index 00000000..b252edbf --- /dev/null +++ b/.github/workflows/eas_preview.yml @@ -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