2023-07-30 19:04:42 +00:00
|
|
|
name: apk
|
|
|
|
on: [push]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
container: mingc/android-build-box
|
|
|
|
steps:
|
|
|
|
- uses: actions/setup-go@v3
|
|
|
|
with:
|
|
|
|
go-version: '>=1.20.1'
|
|
|
|
- uses: actions/checkout@v3
|
2023-07-30 19:24:24 +00:00
|
|
|
- run: curl -sSL -u "$USERNAME:$PASSWORD" -o ShareWithTitle/$STORE_FILE https://cloud.crystalyx.net/remote.php/dav/files/$USERNAME/Bordel/$STORE_FILE
|
2023-07-30 19:04:42 +00:00
|
|
|
- run: sh gradlew build bundleRelease assembleRelease --no-daemon
|
|
|
|
- uses: https://gitea.com/actions/release-action@main
|
|
|
|
if: startsWith(gitea.ref, 'refs/tags')
|
|
|
|
with:
|
|
|
|
files: |
|
|
|
|
ShareWithTitle/build/outputs/apk/debug/app-debug.apk
|
|
|
|
ShareWithTitle/build/outputs/apk/release/app-release.apk
|
|
|
|
ShareWithTitle/build/outputs/bundle/release/app-release.aab
|
|
|
|
api_key: ${{ secrets.RELEASE_TOKEN }}
|
|
|
|
env:
|
|
|
|
USERNAME: ${{ secrets.USERNAME }}
|
|
|
|
PASSWORD: ${{ secrets.PASSWORD }}
|
|
|
|
STORE_FILE: ${{ secrets.STORE_FILE }}
|
|
|
|
STORE_PASSWORD: ${{ secrets.STORE_PASSWORD }}
|
|
|
|
KEY_ALIAS: ${{ secrets.KEY_ALIAS }}
|
|
|
|
KEY_PASSWORD: ${{ secrets.KEY_PASSWORD }}
|