From 6fe19aea3d4c4b9bed102b219212004d66835a3a Mon Sep 17 00:00:00 2001 From: Michel Roux Date: Fri, 1 Mar 2024 21:42:35 +0100 Subject: [PATCH] ci: :green_heart: fix ci with akkuman --- .gitea/workflows/apk.yml | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/.gitea/workflows/apk.yml b/.gitea/workflows/apk.yml index 38951d6..ce61edc 100644 --- a/.gitea/workflows/apk.yml +++ b/.gitea/workflows/apk.yml @@ -6,20 +6,16 @@ jobs: runs-on: ubuntu-latest container: mingc/android-build-box steps: - - uses: actions/setup-go@v5 - with: - go-version: '>=1.20.1' - uses: actions/checkout@v4 - 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: https://gitea.com/actions/release-action@main - if: startsWith(gitea.ref, 'refs/tags') + - run: sh gradlew lint build bundleRelease assembleRelease --no-daemon + - uses: akkuman/gitea-release-action@v1 + if: gitea.ref_type == 'tag' 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 }}