ci: 👷 migrate to akkuman release action
All checks were successful
apk / build (push) Successful in 1m34s

This commit is contained in:
Michel Roux 2024-02-28 09:45:23 +01:00
parent 172b52240e
commit d274ad34f6

View File

@ -6,20 +6,16 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: mingc/android-build-box container: mingc/android-build-box
steps: steps:
- uses: actions/setup-go@v5
with:
go-version: '>=1.20.1'
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- run: curl -sSL -u "$USERNAME:$PASSWORD" -o ShareWithTitle/$STORE_FILE https://cloud.crystalyx.net/remote.php/dav/files/$USERNAME/Bordel/$STORE_FILE - run: curl -sSL -u "$USERNAME:$PASSWORD" -o ShareWithTitle/$STORE_FILE https://cloud.crystalyx.net/remote.php/dav/files/$USERNAME/Bordel/$STORE_FILE
- run: sh gradlew lint build bundle assemble --no-daemon - run: sh gradlew lint build bundle assemble --no-daemon
- uses: https://gitea.com/actions/release-action@main - uses: akkuman/gitea-release-action@v1
if: startsWith(gitea.ref, 'refs/tags') if: gitea.ref_type == 'tag'
with: with:
files: | files: |
ShareWithTitle/build/outputs/apk/debug/ShareWithTitle-debug.apk ShareWithTitle/build/outputs/apk/debug/ShareWithTitle-debug.apk
ShareWithTitle/build/outputs/apk/release/ShareWithTitle-release.apk ShareWithTitle/build/outputs/apk/release/ShareWithTitle-release.apk
ShareWithTitle/build/outputs/bundle/release/ShareWithTitle-release.aab ShareWithTitle/build/outputs/bundle/release/ShareWithTitle-release.aab
api_key: ${{ secrets.RELEASE_TOKEN }}
env: env:
USERNAME: ${{ secrets.USERNAME }} USERNAME: ${{ secrets.USERNAME }}
PASSWORD: ${{ secrets.PASSWORD }} PASSWORD: ${{ secrets.PASSWORD }}