Skip to content

Commit

Permalink
Update build-f-droid-apk.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
linonetwo committed Feb 16, 2024
1 parent 314b251 commit 1924bd3
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions .github/workflows/build-f-droid-apk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ jobs:
- name: Build AAB
run: |
cd android
# ./gradlew clean
./gradlew clean
./gradlew bundleRelease --no-daemon --warning-mode all
- name: Sign AAB
Expand All @@ -108,6 +108,16 @@ jobs:
env:
BUILD_TOOLS_VERSION: ${{ env.BUILD_TOOLS_VERSION }}

- name: Create Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
draft: true
generate_release_notes: true
files: android/app/build/outputs/bundle/release/app-release.aab
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Build APK
run: |
cd android
Expand All @@ -127,20 +137,12 @@ jobs:
env:
BUILD_TOOLS_VERSION: ${{ env.BUILD_TOOLS_VERSION }}


- name: Show artifacts
run: |
ls android/app/build/outputs/apk/release/
ls android/app/build/outputs/bundle/release/
- name: Create Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
draft: true
generate_release_notes: true
files: |
android/app/build/outputs/apk/release/app-release-signed.apk
android/app/build/outputs/bundle/release/app-release.aab
files: android/app/build/outputs/apk/release/app-release-signed.apk
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 1924bd3

Please sign in to comment.