ci: integrate iOS and Android stages with Gitea-native syntax
- Replace github.* context vars with gitea.* equivalents - Change iOS runner from macos-latest to self-hosted (available on our runner) - Fix release.yml: hardcoded '***' token -> actual $GITEA_TOKEN secret - Fix release.yml: missing AAB upload step (only APK was uploaded) - Consistent format gate: ci.yml uses --fix, release.yml uses --set-exit-if-changed - Keep lint -> test -> build pipeline gate chain
This commit is contained in:
@@ -159,9 +159,12 @@ jobs:
|
||||
|
||||
|
||||
# ── iOS release build ───────────────────────────────────────
|
||||
# Note: requires a macOS runner. Uses 'self-hosted' label which
|
||||
# matches our Gitea Actions runner. Falls back to --no-codesign
|
||||
# if Apple signing secrets are not configured.
|
||||
build-ios:
|
||||
name: Build iOS Release
|
||||
runs-on: macos-latest
|
||||
runs-on: self-hosted
|
||||
needs: [test]
|
||||
steps:
|
||||
- name: Checkout
|
||||
@@ -240,7 +243,7 @@ jobs:
|
||||
- name: Create Gitea Release
|
||||
env:
|
||||
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
|
||||
TAG: ${{ github.ref_name }}
|
||||
TAG: ${{ gitea.ref_name }}
|
||||
GITEA_BASE: https://git.westerntechnologies.duckdns.org
|
||||
run: |
|
||||
curl -s -X POST \
|
||||
@@ -252,7 +255,7 @@ jobs:
|
||||
- name: Upload APK to Release
|
||||
env:
|
||||
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
|
||||
TAG: ${{ github.ref_name }}
|
||||
TAG: ${{ gitea.ref_name }}
|
||||
GITEA_BASE: https://git.westerntechnologies.duckdns.org
|
||||
run: |
|
||||
curl -s -X POST \
|
||||
@@ -260,3 +263,15 @@ jobs:
|
||||
-H "Content-Type: application/vnd.android.package-archive" \
|
||||
--data-binary @app-release.apk \
|
||||
"$GITEA_BASE/api/v1/repos/kfj001/kryz-go-flutter/releases/assets?name=app-release.apk&tag_name=$TAG"
|
||||
|
||||
- name: Upload AAB to Release
|
||||
env:
|
||||
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
|
||||
TAG: ${{ gitea.ref_name }}
|
||||
GITEA_BASE: https://git.westerntechnologies.duckdns.org
|
||||
run: |
|
||||
curl -s -X POST \
|
||||
-H "Authorization: token $GITEA_TOKEN" \
|
||||
-H "Content-Type: application/octet-stream" \
|
||||
--data-binary @app-release.aab \
|
||||
"$GITEA_BASE/api/v1/repos/kfj001/kryz-go-flutter/releases/assets?name=app-release.aab&tag_name=$TAG"
|
||||
|
||||
Reference in New Issue
Block a user