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
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 }}