From 9e610370d7c9b70d085f9455e7a8bc0e46e25416 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joris=20Pelgr=C3=B6m?= Date: Thu, 27 Jul 2023 21:42:28 +0200 Subject: [PATCH] Fix version code for F-Droid builds (#3717) --- .github/workflows/onPush.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/onPush.yml b/.github/workflows/onPush.yml index 3e75523ef..4a267ae6f 100644 --- a/.github/workflows/onPush.yml +++ b/.github/workflows/onPush.yml @@ -64,6 +64,14 @@ jobs: with: path: ./**/*.apk + - name: Create Version File + if: github.event_name == 'workflow_dispatch' + shell: bash + env: + VERSION_CODE: ${{ steps.rel_number.outputs.version-code }} + run: | + echo $VERSION_CODE > ./app/build/outputs/version_code.txt + - name: Create Github Pre-Release if: github.event_name == 'workflow_dispatch' uses: softprops/action-gh-release@v0.1.15 @@ -75,10 +83,10 @@ jobs: files: | ./app/build/outputs/apk/full/release/app-full-release.apk ./app/build/outputs/apk/minimal/release/app-minimal-release.apk + ./app/build/outputs/version_code.txt ./wear/build/outputs/apk/release/wear-release.apk ./automotive/build/outputs/apk/full/release/automotive-full-release.apk ./automotive/build/outputs/apk/minimal/release/automotive-minimal-release.apk - ./version.txt - name: Deploy to Firebase env: