forked from github/wulkanowy-mirror
fix: add Android SDK build step
All checks were successful
Generate APK / build (push) Successful in 37m45s
All checks were successful
Generate APK / build (push) Successful in 37m45s
This commit is contained in:
parent
470827fc42
commit
2de3362e0b
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user