From 5d4a990e01e5d235cff8fae57c24b8f96e1b390e Mon Sep 17 00:00:00 2001 From: Vadim <44135514+vodemn@users.noreply.github.com> Date: Tue, 8 Oct 2024 16:57:39 +0200 Subject: [PATCH] include release notes in builds --- .github/workflows/build_apk.yml | 8 ++++++++ .github/workflows/build_ipa.yml | 8 ++++++++ .github/workflows/create_release.yml | 3 +++ 3 files changed, 19 insertions(+) diff --git a/.github/workflows/build_apk.yml b/.github/workflows/build_apk.yml index 89e431a..6caf335 100644 --- a/.github/workflows/build_apk.yml +++ b/.github/workflows/build_apk.yml @@ -64,6 +64,8 @@ env: BUILD_ARGS: --release --flavor ${{ inputs.flavor }} -t lib/main_${{ inputs.flavor }}.dart BUILD_APK_PATH: build/app/outputs/flutter-apk/app-${{ inputs.flavor }}-release.apk BUILD_AAB_PATH: build/app/outputs/bundle/${{ inputs.flavor }}Release/app-${{ inputs.flavor }}-release.aab + RELEASE_NOTES_ARTIFACT_NAME: release_notes_en_${{ inputs.version }} + RELEASE_NOTES_PATH: "assets/release_notes" jobs: build-android: @@ -109,6 +111,12 @@ jobs: - name: Increment build number & replace version number run: bash ./.github/scripts/increment_build_number.sh ${{ github.event.inputs.version }} + - name: Download release notes + uses: actions/download-artifact@v3 + with: + name: ${{ env.RELEASE_NOTES_ARTIFACT_NAME }} + path: ${{ env.RELEASE_NOTES_PATH }} + - name: Install Flutter uses: subosito/flutter-action@v2 with: diff --git a/.github/workflows/build_ipa.yml b/.github/workflows/build_ipa.yml index 602dd9e..88294ba 100644 --- a/.github/workflows/build_ipa.yml +++ b/.github/workflows/build_ipa.yml @@ -39,6 +39,8 @@ on: env: FLAVOR: "prod" + RELEASE_NOTES_ARTIFACT_NAME: release_notes_en_${{ inputs.version }} + RELEASE_NOTES_PATH: "assets/release_notes" jobs: build: @@ -104,6 +106,12 @@ jobs: - name: Increment build number & replace version number run: bash ./.github/scripts/increment_build_number.sh ${{ github.event.inputs.version }} + - name: Download release notes + uses: actions/download-artifact@v3 + with: + name: ${{ env.RELEASE_NOTES_ARTIFACT_NAME }} + path: ${{ env.RELEASE_NOTES_PATH }} + - name: Install Flutter uses: subosito/flutter-action@v2 with: diff --git a/.github/workflows/create_release.yml b/.github/workflows/create_release.yml index b61d0f4..8c7d9fd 100644 --- a/.github/workflows/create_release.yml +++ b/.github/workflows/create_release.yml @@ -84,6 +84,7 @@ jobs: create-github-release: name: Create Github release needs: [build-android, build-ios] + if: ${{ always() && !failure() && !cancelled() }} runs-on: ubuntu-latest permissions: contents: write @@ -133,6 +134,7 @@ jobs: create-google-play-release: name: Create Google Play release needs: [build-android, build-ios] + if: ${{ always() && !failure() && !cancelled() }} runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 @@ -184,6 +186,7 @@ jobs: upload-to-app-store: name: Upload to App Store needs: [build-android, build-ios] + if: ${{ always() && !failure() && !cancelled() }} runs-on: macos-13 steps: - uses: actions/checkout@v3