Fix payment duplicate and sync resurrection bug, update Gitea CI/CD and bump to v1.1.6
Android Release / build (push) Failing after 1h6m33s

This commit is contained in:
Oqba committed 2026-11-02 22:05:53 +03:30
1 parent 9ed2b59d81
commit c7065295b8
11 files changed
+851 -775

No files matched your search

+27 -6
View File
@@ -11,9 +11,10 @@ jobs:
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- name: Checkout code
uses: actions/checkout@v4
- name: set up JDK 21
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: '21'
@@ -40,13 +41,33 @@ jobs:
run: |
mv app/build/outputs/apk/release/app-release.apk app/build/outputs/apk/release/MonthlyPaymentApp-${{ github.ref_name }}.apk
- name: Create Release
- name: Upload APK Artifact
uses: actions/upload-artifact@v4
with:
name: MonthlyPaymentApp-${{ github.ref_name }}
path: app/build/outputs/apk/release/MonthlyPaymentApp-${{ github.ref_name }}.apk
- name: Create Release (GitHub)
if: contains(github.server_url, 'github.com')
uses: softprops/action-gh-release@v2
with:
files: app/build/outputs/apk/release/MonthlyPaymentApp-${{ github.ref_name }}.apk
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Create Release (Gitea)
if: "!contains(github.server_url, 'github.com')"
uses: akkuman/gitea-release-action@v1
env:
NODE_OPTIONS: '--experimental-fetch'
with:
files: app/build/outputs/apk/release/MonthlyPaymentApp-${{ github.ref_name }}.apk
name: "Release ${{ github.ref_name }}"
tag_name: ${{ github.ref_name }}
token: ${{ secrets.GITHUB_TOKEN }}
draft: false
prerelease: false
- name: Update update.json after release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -55,8 +76,8 @@ jobs:
VERSION_NAME="${TAG_NAME#v}"
VERSION_CODE=$(grep 'versionCode' app/build.gradle.kts | head -n 1 | awk '{print $3}')
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config user.name "actions-bot"
git config user.email "bot@mizbanplatform.ir"
git fetch origin main
git checkout main
@@ -64,7 +85,7 @@ jobs:
{
"versionCode": ${VERSION_CODE},
"versionName": "${VERSION_NAME}",
"url": "https://github.com/oqba26/MonthlyPaymentApp/releases/download/${TAG_NAME}/MonthlyPaymentApp-${TAG_NAME}.apk",
"url": "${{ github.server_url }}/${{ github.repository }}/releases/download/${TAG_NAME}/MonthlyPaymentApp-${TAG_NAME}.apk",
"releaseNotes": "بهبودهای پایداری و عملکرد همگام‌سازی",
"isForceUpdate": false
}