From 2de3362e0b7c8c238b190329001771814476a44f Mon Sep 17 00:00:00 2001 From: sadorowo Date: Sat, 11 May 2024 15:11:22 +0200 Subject: [PATCH] fix: add Android SDK build step --- .gitea/workflows/build_android.yml | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/.gitea/workflows/build_android.yml b/.gitea/workflows/build_android.yml index 269fd5ed..f4ad5560 100644 --- a/.gitea/workflows/build_android.yml +++ b/.gitea/workflows/build_android.yml @@ -1,7 +1,6 @@ name: Generate APK env: - # The name of the main module repository main_project_module: app on: @@ -9,23 +8,20 @@ on: branches: - 'develop' - # Allows you to run this workflow manually from the Actions tab - workflow_dispatch: - jobs: build: runs-on: ubuntu-latest steps: - - name: Checkout code + - name: Checkout the repository uses: actions/checkout@v3 - name: Set current date as env variable run: echo "date_today=$(date +'%Y-%m-%d')" >> $GITHUB_ENV - name: Set repository name as env variable - run: echo "repository_name=$(echo '${{ github.repository }}' | awk -F '/' '{print $2}')" >> $GITHUB_ENV + run: echo "repository_name=$(echo '${{ gitea.repository }}' | awk -F '/' '{print $2}')" >> $GITHUB_ENV - name: Set up JDK uses: actions/setup-java@v3 @@ -41,6 +37,9 @@ jobs: - name: Change wrapper permissions run: chmod +x ./gradlew + - name: Setup Android SDK + uses: android-actions/setup-android@v3 + - name: Build debug APK run: ./gradlew assembleDebug @@ -50,7 +49,7 @@ jobs: NODE_OPTIONS: '--experimental-fetch' with: files: | - app/build/outputs/**/*-debug.apk + app/build/outputs/**/*-debug.apk name: Release ${{ env.VERSION_NAME }} (${{ env.date_today }}) tag_name: v${{ env.VERSION_NAME }} \ No newline at end of file