From 18ab144866a9787aad81168ae6929fc346ea66c0 Mon Sep 17 00:00:00 2001 From: Quentin TREHEUX Date: Fri, 3 Mar 2023 04:51:09 +0100 Subject: [PATCH] [ADD] build app job --- .github/workflows/build_app.yml | 43 +++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 .github/workflows/build_app.yml diff --git a/.github/workflows/build_app.yml b/.github/workflows/build_app.yml new file mode 100644 index 0000000..ae50612 --- /dev/null +++ b/.github/workflows/build_app.yml @@ -0,0 +1,43 @@ +name: Build_App + +on: + workflow_call: + +jobs: + +## Build App ## + + Build_Front: + runs-on: ubuntu-latest + defaults: + run: + working-directory: ./front + environment: Staging + + steps: + - uses: actions/checkout@v3 + + - name: Install Yarn + run: npm install -g yarn + + - name: Install dependencies + run: yarn install + + - name: 🏗 Setup Expo + uses: expo/expo-github-action@v7 + with: + expo-version: latest + eas-version: 3.3.1 + token: ${{ secrets.EXPO_TOKEN }} + + - name: Build Android APK + run: | + eas build -p android --profile debug --local --non-interactive + mv *.apk chromacase.apk + + - name: Upload Artifact + if: github.ref == 'refs/heads/main' + uses: actions/upload-artifact@v3 + with: + name: chromacase.apk + path: front/