Skip to content

Commit

Permalink
ci: generate version.txt file and upload it to GH for new releases [W…
Browse files Browse the repository at this point in the history
…PB-7289] (#3356)
  • Loading branch information
MohamadJaara authored Aug 22, 2024
1 parent 955b235 commit a36ba5b
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/build-prod-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,13 @@ jobs:
echo $ENCODED_STRING | base64 -di > "${TMP_KEYSTORE_FILE_PATH}"/the.keystore
- name: Make gradlew executable
run: chmod +x ./gradlew
- name: Generate version file
run: ./gradlew generateVersionFile
- name: Upload version file as artifact
uses: actions/upload-artifact@v4
with:
name: Version File
path: app/version.txt
- name: build prod flavour APK
run:
./gradlew app:assembleProdCompatrelease
Expand Down Expand Up @@ -106,7 +113,9 @@ jobs:
github-token: ${{ secrets.GITHUB_TOKEN }}
build-flavour: prod
build-variant: compatrelease
- name: Attach APK to release
- name: Attach APK and version file to release
uses: softprops/[email protected]
with:
files: app/build/outputs/apk/prodCompatrelease/*.apk
files: |
app/build/outputs/apk/prodCompatrelease/*.apk
app/version.txt

0 comments on commit a36ba5b

Please sign in to comment.