From 628c0d2c19959320a9680bacb329017d88d91dd1 Mon Sep 17 00:00:00 2001 From: Philipp Crocoll Date: Sat, 5 Jul 2025 14:16:17 +0200 Subject: [PATCH] enable creation of a release --- .github/workflows/release.yml | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a8885bbe..2c12f282 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -81,7 +81,7 @@ jobs: - name: List apks run: find . -type f -name "*.apk" shell: bash - + - name: Update dotnet workloads run: | dotnet workload update @@ -128,6 +128,7 @@ jobs: uses: actions/upload-artifact@v4 with: name: keepass2android_${{ matrix.target }}_${{ matrix.flavor }} + # the first line is for "apk" target, the second line is for "apk_split" target path: | src/keepass2android-app/bin/Release/net8.0-android/publish/*.apk src/keepass2android-app/bin/Release/net8.0-android/*/publish/*.apk @@ -136,9 +137,10 @@ jobs: run: find . -type f -name "*.apk" shell: bash - #- name: Upload APK to GitHub Release - # uses: softprops/action-gh-release@v2 - # if: github.ref_type == 'tag' - # with: - # files: | - # src/keepass2android-app/bin/Release/net8.0-android/*/publish/*.apk src/keepass2android-app/bin/Release/net8.0-android/publish/*.apk + - name: Upload APK to GitHub Release + uses: softprops/action-gh-release@v2 + if: github.ref_type == 'tag' + with: + files: | + src/keepass2android-app/bin/Release/net8.0-android/publish/*.apk + src/keepass2android-app/bin/Release/net8.0-android/*/publish/*.apk