-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: generate version.txt file and upload it to GH for new releases [W…
…PB-7289] (#3356)
- Loading branch information
1 parent
955b235
commit a36ba5b
Showing
1 changed file
with
11 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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 |