From e37fae23ef4f6b78d5dd454ac521a603e2dc7869 Mon Sep 17 00:00:00 2001 From: cogwheel0 <172976095+cogwheel0@users.noreply.github.com> Date: Sat, 25 Oct 2025 15:03:09 +0530 Subject: [PATCH] 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. --- .github/workflows/release.yml | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2b7208c..34a9eda 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -9,10 +9,12 @@ concurrency: group: release-${{ github.ref }} cancel-in-progress: true -jobs: - build-android: - name: Build Android +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