Skip to content

Commit

Permalink
chore: use Git commit message as changelog for edge releases
Browse files Browse the repository at this point in the history
  • Loading branch information
JagandeepBrar committed Jun 21, 2022
1 parent ff08010 commit 2e90ba3
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 8 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/prepare.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down Expand Up @@ -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
8 changes: 8 additions & 0 deletions .github/workflows/publish_android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ name: Publish Android
on:
workflow_call:
inputs:
build-changelog:
required: true
type: string
build-number:
required: true
type: string
Expand Down Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

This file was deleted.

0 comments on commit 2e90ba3

Please sign in to comment.