From 15c979523d16aeca077f0ea210adeb129df1c201 Mon Sep 17 00:00:00 2001 From: Domenic Gosein <87760323+goseind@users.noreply.github.com> Date: Sat, 11 Nov 2023 15:24:42 +0000 Subject: [PATCH] add github wfs for build and submit --- .github/workflows/eas-build.yml | 29 +++++++++++++++++++++++++++++ .github/workflows/eas-submit.yml | 25 +++++++++++++++++++++++++ 2 files changed, 54 insertions(+) create mode 100644 .github/workflows/eas-build.yml create mode 100644 .github/workflows/eas-submit.yml diff --git a/.github/workflows/eas-build.yml b/.github/workflows/eas-build.yml new file mode 100644 index 0000000..13b1187 --- /dev/null +++ b/.github/workflows/eas-build.yml @@ -0,0 +1,29 @@ +name: EAS Build +on: + workflow_dispatch: + pull_request: + types: + - opened + push: + branches: + - main + +jobs: + build: + name: Install and build + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: 18.x + cache: npm + - name: Setup Expo and EAS + uses: expo/expo-github-action@v8 + with: + eas-version: latest + token: ${{ secrets.EXPO_TOKEN }} + - name: Install dependencies + run: npm ci + - name: Build on EAS + run: eas build -p android --wait --non-interactive diff --git a/.github/workflows/eas-submit.yml b/.github/workflows/eas-submit.yml new file mode 100644 index 0000000..b16c8a7 --- /dev/null +++ b/.github/workflows/eas-submit.yml @@ -0,0 +1,25 @@ +name: EAS Submit +on: + workflow_dispatch: + release: + types: [published] + +jobs: + submit: + name: Install and submit + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: 18.x + cache: npm + - name: Setup Expo and EAS + uses: expo/expo-github-action@v8 + with: + eas-version: latest + token: ${{ secrets.EXPO_TOKEN }} + - name: Install dependencies + run: npm ci + - name: Build and submit on EAS + run: eas build -p android --wait --auto-submit-with-profile production --non-interactive