From 2e90ba36a9ae94057dec9143d406b90f79be1b97 Mon Sep 17 00:00:00 2001 From: Jagandeep Brar Date: Mon, 20 Jun 2022 22:32:08 -0400 Subject: [PATCH] chore: use Git commit message as changelog for edge releases --- .github/workflows/prepare.yml | 6 +----- .github/workflows/publish_android.yml | 8 ++++++++ .github/workflows/release.yml | 1 + .../metadata/android/en-CA/changelogs/default.txt | 3 --- 4 files changed, 10 insertions(+), 8 deletions(-) delete mode 100644 android/fastlane/metadata/android/en-CA/changelogs/default.txt diff --git a/.github/workflows/prepare.yml b/.github/workflows/prepare.yml index 5e91f1046..a134e0488 100644 --- a/.github/workflows/prepare.yml +++ b/.github/workflows/prepare.yml @@ -157,6 +157,7 @@ jobs: name: Build Details runs-on: ubuntu-latest outputs: + build-changelog: ${{ steps.build-changelog.outputs.result }} build-number: ${{ steps.build-number.outputs.result }} build-title: ${{ steps.build-title.outputs.output }} build-version: ${{ steps.build-version.outputs.current-version }} @@ -252,16 +253,11 @@ jobs: - name: Generate Build Runner Files run: flutter packages pub run build_runner build - - name: Generate Changelog - run: | - echo ${{ needs.build-details.outputs.build-changelog }} > ${{ github.workspace }}/android/fastlane/metadata/android/en-CA/changelogs/default.txt - - name: Upload Core Files uses: actions/upload-artifact@v3 with: name: core-files path: | - ${{ github.workspace }}/android/fastlane/metadata/android/en-CA/changelogs/default.txt ${{ github.workspace }}/assets/localization ${{ github.workspace }}/lib/**/*.g.dart ${{ github.workspace }}/lib/system/environment.dart diff --git a/.github/workflows/publish_android.yml b/.github/workflows/publish_android.yml index 369ac4083..b66d4a633 100644 --- a/.github/workflows/publish_android.yml +++ b/.github/workflows/publish_android.yml @@ -3,6 +3,9 @@ name: Publish Android on: workflow_call: inputs: + build-changelog: + required: true + type: string build-number: required: true type: string @@ -60,6 +63,11 @@ jobs: case 'edge': default: return 'internal'; } + + - name: Generate Changelog + run: | + mkdir -p ${{ github.workspace }}/android/fastlane/metadata/android/en-CA/changelogs + echo ${{ inputs.build-changelog }} > ${{ github.workspace }}/android/fastlane/metadata/android/en-CA/changelogs/default.txt - name: Deploy to Google Play Store working-directory: ${{ github.workspace }}/android diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4f8dd7d53..5c629ff99 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -120,6 +120,7 @@ jobs: uses: JagandeepBrar/LunaSea/.github/workflows/publish_android.yml@master with: flavor: ${{ inputs.flavor || 'edge' }} + build-changelog: ${{ needs.prepare.outputs.build-changelog }} build-number: ${{ needs.prepare.outputs.build-number }} build-title: ${{ needs.prepare.outputs.build-title }} secrets: diff --git a/android/fastlane/metadata/android/en-CA/changelogs/default.txt b/android/fastlane/metadata/android/en-CA/changelogs/default.txt deleted file mode 100644 index 7a61b7133..000000000 --- a/android/fastlane/metadata/android/en-CA/changelogs/default.txt +++ /dev/null @@ -1,3 +0,0 @@ -Thank you for testing upcoming releases of LunaSea! Please consider joining the Discord to give feedback to the developer. - -Changes can be found on GitHub or by going to settings/system and tapping on the version tile! \ No newline at end of file