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