chore: update GitHub Actions workflow for Android and iOS builds

- Added permissions for write access to contents in both Android and iOS jobs.
- Updated artifact name for Android release from 'Releases' to 'Android-Release'.
- Configured Gradle caching to be read-write.
- Specified exact IPA artifact name for iOS release and added options to omit body and name during updates.
This commit is contained in:
cogwheel0
2025-10-25 15:03:09 +05:30
parent 0957e14f8b
commit e37fae23ef

View File

@@ -13,6 +13,8 @@ jobs:
build-android:
name: Build Android
runs-on: ubuntu-latest
permissions:
contents: write
steps:
#1 Checkout Repository
@@ -28,6 +30,8 @@ jobs:
- name: Setup Gradle and caching
uses: gradle/actions/setup-gradle@v3
with:
cache-read-only: false
#3 Setup Flutter
- name: Set Up Flutter
@@ -64,7 +68,7 @@ jobs:
- name: Upload Artifacts
uses: actions/upload-artifact@v4
with:
name: Releases
name: Android-Release
path: |
build/app/outputs/flutter-apk/app-arm64-v8a-release.apk
build/app/outputs/flutter-apk/app-armeabi-v7a-release.apk
@@ -85,6 +89,8 @@ jobs:
build-ios:
name: Build iOS
runs-on: macos-latest
permissions:
contents: write
steps:
#1 Checkout Repository
@@ -164,8 +170,11 @@ jobs:
- name: Update Release with IPA
uses: ncipollo/release-action@v1
with:
artifacts: "build/ios/ipa/*.ipa"
artifacts: "build/ios/ipa/conduit.ipa"
tag: ${{ github.ref_name }}
token: ${{ secrets.GITHUB_TOKEN }}
allowUpdates: true
makeLatest: true
omitBody: true
omitBodyDuringUpdate: true
omitNameDuringUpdate: true