SetAsWallpaper/.gitea/workflows/apk.yml
Michel Roux 09eda47d80
All checks were successful
apk / build (push) Successful in 1m28s
Fix CI
2023-06-30 14:26:41 +00:00

30 lines
1.0 KiB
YAML

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
- 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
- uses: Xefir/gitea-release-action@main
if: startsWith(gitea.ref, 'refs/tags')
with:
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
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 }}