fix: add Android SDK build step
All checks were successful
Generate APK / build (push) Successful in 37m45s

This commit is contained in:
Franek 2024-05-11 15:11:22 +02:00
parent 470827fc42
commit 2de3362e0b
No known key found for this signature in database
GPG Key ID: 0329F871B2079351

View File

@ -1,7 +1,6 @@
name: Generate APK name: Generate APK
env: env:
# The name of the main module repository
main_project_module: app main_project_module: app
on: on:
@ -9,23 +8,20 @@ on:
branches: branches:
- 'develop' - 'develop'
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs: jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout code - name: Checkout the repository
uses: actions/checkout@v3 uses: actions/checkout@v3
- name: Set current date as env variable - name: Set current date as env variable
run: echo "date_today=$(date +'%Y-%m-%d')" >> $GITHUB_ENV run: echo "date_today=$(date +'%Y-%m-%d')" >> $GITHUB_ENV
- name: Set repository name as env variable - 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 - name: Set up JDK
uses: actions/setup-java@v3 uses: actions/setup-java@v3
@ -41,6 +37,9 @@ jobs:
- name: Change wrapper permissions - name: Change wrapper permissions
run: chmod +x ./gradlew run: chmod +x ./gradlew
- name: Setup Android SDK
uses: android-actions/setup-android@v3
- name: Build debug APK - name: Build debug APK
run: ./gradlew assembleDebug run: ./gradlew assembleDebug
@ -50,7 +49,7 @@ jobs:
NODE_OPTIONS: '--experimental-fetch' NODE_OPTIONS: '--experimental-fetch'
with: with:
files: | files: |
app/build/outputs/**/*-debug.apk app/build/outputs/**/*-debug.apk
name: Release ${{ env.VERSION_NAME }} (${{ env.date_today }}) name: Release ${{ env.VERSION_NAME }} (${{ env.date_today }})
tag_name: v${{ env.VERSION_NAME }} tag_name: v${{ env.VERSION_NAME }}