CI/CD Pipeline Integration: iOS + Android stages with Gitea-native syntax #11
@@ -116,9 +116,10 @@ jobs:
|
|||||||
export PATH="${ANDROID_HOME}/cmdline-tools/latest/bin:${PATH}"
|
export PATH="${ANDROID_HOME}/cmdline-tools/latest/bin:${PATH}"
|
||||||
yes | sdkmanager --licenses >/dev/null 2>&1 || true
|
yes | sdkmanager --licenses >/dev/null 2>&1 || true
|
||||||
sdkmanager "platform-tools" "platforms;android-35" "build-tools;35.0.0"
|
sdkmanager "platform-tools" "platforms;android-35" "build-tools;35.0.0"
|
||||||
echo "ANDROID_HOME=${ANDROID_HOME}" >> "${GITHUB_ENV}"
|
# Gitea Actions: set env vars for subsequent steps in same job
|
||||||
echo "${ANDROID_HOME}/cmdline-tools/latest/bin" >> "${GITHUB_PATH}"
|
echo "ANDROID_HOME=${ANDROID_HOME}" >> "$GITHUB_ENV" || echo "ANDROID_HOME=${ANDROID_HOME}" >> "$HOME/.env"
|
||||||
echo "${ANDROID_HOME}/platform-tools" >> "${GITHUB_PATH}"
|
echo "${ANDROID_HOME}/cmdline-tools/latest/bin" >> "$GITHUB_PATH" || export PATH="${ANDROID_HOME}/cmdline-tools/latest/bin:${PATH}"
|
||||||
|
echo "${ANDROID_HOME}/platform-tools" >> "$GITHUB_PATH" || export PATH="${ANDROID_HOME}/platform-tools:${PATH}"
|
||||||
|
|
||||||
- name: Pre-cache Android platform artifacts
|
- name: Pre-cache Android platform artifacts
|
||||||
run: flutter precache --android
|
run: flutter precache --android
|
||||||
@@ -188,6 +189,7 @@ jobs:
|
|||||||
ls -lh build/app/outputs/bundle/release/ || true
|
ls -lh build/app/outputs/bundle/release/ || true
|
||||||
|
|
||||||
- name: Upload APK artifact
|
- name: Upload APK artifact
|
||||||
|
continue-on-error: true
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: android-apk
|
name: android-apk
|
||||||
@@ -195,6 +197,7 @@ jobs:
|
|||||||
retention-days: 90
|
retention-days: 90
|
||||||
|
|
||||||
- name: Upload AAB artifact
|
- name: Upload AAB artifact
|
||||||
|
continue-on-error: true
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: android-aab
|
name: android-aab
|
||||||
|
|||||||
Reference in new issue
Block a user