diff --git a/.gitea/workflows/manual-build.yml b/.gitea/workflows/manual-build.yml new file mode 100644 index 0000000..432169e --- /dev/null +++ b/.gitea/workflows/manual-build.yml @@ -0,0 +1,57 @@ +name: Manual APK Build +on: + workflow_dispatch: + +jobs: + build-android: + runs-on: ubuntu-latest + steps: + - name: 🏗 Setup repo + uses: actions/checkout@v2 + + - name: 🏗 Setup Node + uses: actions/setup-node@v2 + with: + node-version: 22 + + - name: 🏗 Setup pnpm + uses: pnpm/action-setup@v4 + with: + version: latest + + - name: 🏗 Setup Java + uses: actions/setup-java@v4 + with: + distribution: temurin + java-version: 17 + + - name: 🏗 Setup Android SDK + uses: android-actions/setup-android@v3 + + - name: 🏗 Setup Expo and EAS + uses: expo/expo-github-action@v8 + with: + token: ${{ secrets.EXPO_TOKEN }} + eas-version: latest + packager: pnpm + + - name: 📦 Install dependencies + run: pnpm install + + - name: 👷 Build app + run: | + eas build --local \ + --non-interactive \ + --output=./app-build \ + --platform=android \ + --profile=preview + + - name: 📝 Rename build to APK + run: mv app-build time-until-manual.apk + + - name: 📤 Upload build artifact + uses: actions/upload-artifact@v3 + with: + name: manual-apk-build + path: time-until-manual.apk + if-no-files-found: error