2023-06-26 16:09:56 +00:00
|
|
|
name: apk
|
2023-07-31 21:04:22 +00:00
|
|
|
on: [ push ]
|
2023-06-26 16:09:56 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
container: mingc/android-build-box
|
|
|
|
steps:
|
|
|
|
- uses: actions/setup-go@v3
|
2023-06-26 16:17:54 +00:00
|
|
|
with:
|
|
|
|
go-version: '>=1.20.1'
|
2023-09-11 06:53:01 +00:00
|
|
|
- uses: actions/checkout@v4
|
2023-06-26 16:09:56 +00:00
|
|
|
- run: curl -sSL -u "$USERNAME:$PASSWORD" -o app/$STORE_FILE https://cloud.crystalyx.net/remote.php/dav/files/$USERNAME/Bordel/$STORE_FILE
|
|
|
|
- run: sh gradlew build bundleRelease assembleRelease --no-daemon
|
2023-07-25 14:47:14 +00:00
|
|
|
- uses: https://gitea.com/actions/release-action@main
|
2023-06-26 16:09:56 +00:00
|
|
|
if: startsWith(gitea.ref, 'refs/tags')
|
|
|
|
with:
|
2023-06-26 16:11:10 +00:00
|
|
|
files: |
|
|
|
|
app/build/outputs/apk/debug/app-debug.apk
|
|
|
|
app/build/outputs/apk/release/app-release.apk
|
|
|
|
app/build/outputs/bundle/release/app-release.aab
|
2023-06-26 16:09:56 +00:00
|
|
|
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 }}
|