chore: use Git commit message as changelog for edge releases

This commit is contained in:
Jagandeep Brar
2022-06-20 22:32:08 -04:00
parent ff08010eca
commit 2e90ba36a9
4 changed files with 10 additions and 8 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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: