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