forked from upstream-mirrors/quik
Dynamically bump versionCode in CI and create unique release tags for F-Droid compatibility
Build and Release APK / Build APK (push) Successful in 3m10s
Build and Release APK / Build APK (push) Successful in 3m10s
This commit is contained in:
@@ -30,6 +30,13 @@ jobs:
|
|||||||
- name: Grant execute permission for gradlew
|
- name: Grant execute permission for gradlew
|
||||||
run: chmod +x gradlew
|
run: chmod +x gradlew
|
||||||
|
|
||||||
|
- name: Bump Version Code for CI
|
||||||
|
run: |
|
||||||
|
NEW_VC=$(( 2238 + ${{ github.run_number }} ))
|
||||||
|
NEW_VN="4.3.6-remotrix.${{ github.run_number }}"
|
||||||
|
sed -i "s/versionCode 2238/versionCode $NEW_VC/g" presentation/build.gradle
|
||||||
|
sed -i "s/versionName '4.3.6'/versionName '$NEW_VN'/g" presentation/build.gradle
|
||||||
|
|
||||||
- name: Build Debug APK
|
- name: Build Debug APK
|
||||||
run: |
|
run: |
|
||||||
for i in 1 2 3; do
|
for i in 1 2 3; do
|
||||||
@@ -47,8 +54,8 @@ jobs:
|
|||||||
- name: Create Release
|
- name: Create Release
|
||||||
uses: https://gitea.com/actions/gitea-release-action@v1
|
uses: https://gitea.com/actions/gitea-release-action@v1
|
||||||
with:
|
with:
|
||||||
tag_name: "latest"
|
tag_name: "v4.3.6-remotrix.${{ github.run_number }}"
|
||||||
name: "Latest Build"
|
name: "Remotrix Build #${{ github.run_number }}"
|
||||||
body: "Automated release of Quik Fork with Remotrix integration. Generated from the latest push."
|
body: "Automated release of Quik Fork with Remotrix integration. Generated from the latest push."
|
||||||
files: |
|
files: |
|
||||||
presentation/build/outputs/apk/debug/*.apk
|
presentation/build/outputs/apk/debug/*.apk
|
||||||
|
|||||||
Reference in New Issue
Block a user