forked from upstream-mirrors/quik
Fix duplicate Matrix forwarding, contact names and bridge reset
Build and Release APK / Build APK (push) Successful in 12m11s
Build and Release APK / Build APK (push) Successful in 12m11s
This commit is contained in:
@@ -32,10 +32,27 @@ jobs:
|
||||
|
||||
- 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
|
||||
python3 - <<'PYTHON'
|
||||
import os
|
||||
import re
|
||||
from pathlib import Path
|
||||
path = Path("presentation/build.gradle")
|
||||
source = path.read_text()
|
||||
run = int(os.environ["BUILD_NUMBER"])
|
||||
code = int(re.search(r"versionCode (\d+)", source).group(1)) + run
|
||||
base = re.search(r"versionName '([^']+)'", source).group(1)
|
||||
version = f"{base}-remotrix.{run}"
|
||||
source = re.sub(r"versionCode \d+", f"versionCode {code}", source, count=1)
|
||||
source = re.sub(r"versionName '[^']+'", f"versionName '{version}'", source, count=1)
|
||||
path.write_text(source)
|
||||
with open(os.environ["GITHUB_ENV"], "a") as env:
|
||||
env.write(f"APP_VERSION={version}\n")
|
||||
PYTHON
|
||||
env:
|
||||
BUILD_NUMBER: ${{ github.run_number }}
|
||||
|
||||
- name: Test Matrix room resolution
|
||||
run: ./gradlew :remotrix-sync:testDebugUnitTest
|
||||
|
||||
- name: Build Debug APK
|
||||
run: |
|
||||
@@ -54,7 +71,7 @@ jobs:
|
||||
- name: Create Release
|
||||
uses: https://gitea.com/actions/gitea-release-action@v1
|
||||
with:
|
||||
tag_name: "v4.3.6-remotrix.${{ github.run_number }}"
|
||||
tag_name: "v${{ env.APP_VERSION }}"
|
||||
name: "Remotrix Build #${{ github.run_number }}"
|
||||
body: "Automated release of Quik Fork with Remotrix integration. Generated from the latest push."
|
||||
files: |
|
||||
|
||||
Reference in New Issue
Block a user