From 6c6742a14eed6621bb5ef399be316eb8d581ce72 Mon Sep 17 00:00:00 2001 From: cogwheel0 <172976095+cogwheel0@users.noreply.github.com> Date: Wed, 5 Nov 2025 15:21:12 +0530 Subject: [PATCH] feat(release): Add job to generate release notes and update release with artifacts --- .github/workflows/release.yml | 26 ++++++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 431d369..a364bea 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -10,9 +10,28 @@ concurrency: cancel-in-progress: true jobs: + generate-release-notes: + name: Generate Release Notes + runs-on: ubuntu-latest + permissions: + contents: write + + steps: + - name: Checkout Repository + uses: actions/checkout@v4 + + - name: Create Release with Notes + uses: ncipollo/release-action@v1 + with: + tag: ${{ github.ref_name }} + token: ${{ secrets.GITHUB_TOKEN }} + generateReleaseNotes: true + makeLatest: true + build-android: name: Build Android runs-on: ubuntu-latest + needs: generate-release-notes permissions: contents: write @@ -75,20 +94,23 @@ jobs: build/app/outputs/flutter-apk/app-x86_64-release.apk build/app/outputs/bundle/release/app-release.aab - - name: Create or Update Release + - name: Update Release with Artifacts uses: ncipollo/release-action@v1 with: artifacts: "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-x86_64-release.apk,build/app/outputs/bundle/release/app-release.aab" tag: ${{ github.ref_name }} token: ${{ secrets.GITHUB_TOKEN }} - generateReleaseNotes: true allowUpdates: true makeLatest: true + omitBody: true + omitBodyDuringUpdate: true + omitNameDuringUpdate: true build-ios: name: Build iOS runs-on: macos-latest + needs: generate-release-notes permissions: contents: write