Skip to content

Update Gradle Wrapper from 8.11.1 to 8.12 (#113) #348

Update Gradle Wrapper from 8.11.1 to 8.12 (#113)

Update Gradle Wrapper from 8.11.1 to 8.12 (#113) #348

Workflow file for this run

name: Android CI
on:
push:
repository_dispatch:
workflow_dispatch:
release:
types: [published]
permissions:
actions: write
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@main
- name: Get Time
id: time
uses: nanzm/get-time-action@master
with:
timeZone: 8
format: 'YYYYMMDDHHmmss'
- name: Setup JDK
uses: actions/setup-java@main
with:
distribution: 'zulu'
java-version: '21'
java-package: jdk
cache: 'gradle'
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build APK
run: ./gradlew :android:assembleRelease
- name: Upload to artifact
uses: actions/upload-artifact@v4
continue-on-error: true
with:
name: ${{ github.ref }}_${{ steps.time.outputs.time }}
path: android/build/outputs/apk/release/*.apk
# - name: Upload to release
# uses: svenstaro/upload-release-action@master
# if: github.event_name == 'release'
# with:
# repo_token: ${{ secrets.GITHUB_TOKEN }}
# file: android/build/outputs/apk/release/*.apk
# asset_name: JPSyllabary
# tag: ${{ github.ref }}_${{ steps.time.outputs.time }}
# overwrite: true
# file_glob: true
- name: Remove old Releases
uses: dev-drprasad/delete-older-releases@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
keep_latest: 3
delete_tags: true
- name: Delete workflow runs
uses: GitRML/delete-workflow-runs@main
with:
retain_days: 3
keep_minimum_runs: 2