Skip to content

Commit

Permalink
Fix version code for F-Droid builds (home-assistant#3717)
Browse files Browse the repository at this point in the history
  • Loading branch information
jpelgrom authored Jul 27, 2023
1 parent 4069d29 commit 9e61037
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/onPush.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
Expand All @@ -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:
Expand Down

0 comments on commit 9e61037

Please sign in to comment.