From 68f9115502afacaf918f671b9c21f92102700770 Mon Sep 17 00:00:00 2001 From: Anmol Verma Date: Sat, 13 Apr 2024 17:23:42 +0530 Subject: [PATCH] Add manual build workflow --- .github/workflows/android-build-manual.yml | 49 +++++++++++++++++++ .../workflows/android-preview-build-local.yml | 2 +- 2 files changed, 50 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/android-build-manual.yml diff --git a/.github/workflows/android-build-manual.yml b/.github/workflows/android-build-manual.yml new file mode 100644 index 000000000..a52852034 --- /dev/null +++ b/.github/workflows/android-build-manual.yml @@ -0,0 +1,49 @@ +name: android build manual + +on: + workflow_dispatch: + inputs: + name: + description: 'Build manually' + default: 'World' + required: true + type: string + +jobs: + update: + name: EAS Android Preview Build + runs-on: ubuntu-latest + permissions: + contents: read + pull-requests: write + steps: + - name: Check for EXPO_TOKEN + run: | + if [ -z "${{ secrets.EXPO_TOKEN }}" ]; then + echo "You must provide an EXPO_TOKEN secret linked to this project's Expo account in this repo's secrets. Learn more: https://docs.expo.dev/eas-update/github-actions" + exit 1 + fi + + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Setup Node + uses: actions/setup-node@v3 + with: + node-version: 20.x + cache: yarn + + - name: Setup EAS + uses: expo/expo-github-action@v8 + with: + eas-version: latest + token: ${{ secrets.EXPO_TOKEN }} + + - name: Install dependencies + run: yarn install + + - name: Create preview + uses: expo/expo-github-action/preview@v8 + with: + working-directory: apps/expo + command: eas build --platform android --profile preview \ No newline at end of file diff --git a/.github/workflows/android-preview-build-local.yml b/.github/workflows/android-preview-build-local.yml index 95622ce69..b3be73155 100644 --- a/.github/workflows/android-preview-build-local.yml +++ b/.github/workflows/android-preview-build-local.yml @@ -9,7 +9,7 @@ on: jobs: update: - name: EAS Android Preview Build + name: EAS Android Preview Build Local runs-on: ubuntu-latest permissions: contents: read