-
Notifications
You must be signed in to change notification settings - Fork 27
[#463] Github Action: Generate and add "release notes" when distributing new builds on Firebase (staging and production) #629
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
hoangnguyen92dn
merged 1 commit into
develop
from
chore/463-generate-and-add-release-notes-when-distributing-new-builds-on-firebase
Feb 27, 2026
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
82 changes: 82 additions & 0 deletions
82
.cicdtemplate/.github/workflows/deploy_production_to_firebase_app_distribution.yml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,82 @@ | ||
| name: Deploy production to Firebase App Distribution | ||
|
|
||
| on: | ||
| push: | ||
| branches: | ||
| - main | ||
| workflow_dispatch: | ||
| inputs: | ||
| testerGroups: | ||
| description: "Tester groups (Use \"vars.TESTER_GROUPS\" as default)" | ||
| required: false | ||
| type: string | ||
|
|
||
| jobs: | ||
| deploy_production_to_firebase_app_distribution: | ||
| name: Deploy production to Firebase App Distribution | ||
| runs-on: ubuntu-latest | ||
| timeout-minutes: 30 | ||
| steps: | ||
| - name: Set up JDK 17 | ||
| uses: actions/setup-java@v3 | ||
| with: | ||
| distribution: 'temurin' | ||
| java-version: '17' | ||
|
|
||
| - name: Set up timezone | ||
| uses: zcong1993/setup-timezone@master | ||
| with: | ||
| timezone: Asia/Bangkok | ||
|
|
||
| - name: Checkout source code | ||
| uses: actions/checkout@v4 | ||
| with: | ||
| fetch-depth: 0 | ||
|
|
||
| - name: Cache Gradle | ||
| uses: actions/cache@v4 | ||
| with: | ||
| path: | | ||
| ~/.gradle/caches/modules-* | ||
| ~/.gradle/caches/jars-* | ||
| ~/.gradle/caches/build-cache-* | ||
| key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }} | ||
| restore-keys: | | ||
| ${{ runner.os }}-gradle- | ||
|
|
||
| - name: Run Detekt | ||
| run: ./gradlew detekt | ||
|
|
||
| - name: Archive Detekt reports | ||
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: DetektReports | ||
| path: build/reports/detekt/ | ||
|
|
||
| - name: Run unit tests with Kover | ||
| run: ./gradlew koverHtmlReportCustom | ||
|
|
||
| - name: Archive code coverage reports | ||
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: CodeCoverageReports | ||
| path: app/build/reports/kover/ | ||
|
|
||
| - name: Generate release notes | ||
| id: generate-release-notes | ||
| run: | | ||
| echo 'RELEASE_NOTES<<EOF' >> $GITHUB_OUTPUT | ||
| echo "$(git log --merges --pretty=%B $(git describe --abbrev=0 --tags)..HEAD | grep "\[")" >> $GITHUB_OUTPUT | ||
| echo 'EOF' >> $GITHUB_OUTPUT | ||
hoangnguyen92dn marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| - name: Build production APK | ||
| run: ./gradlew assembleProductionPreRelease | ||
|
|
||
| - name: Deploy production to Firebase | ||
| uses: wzieba/Firebase-Distribution-Github-Action@v1 | ||
| with: | ||
| appId: ${{secrets.FIREBASE_APP_ID_PRODUCTION}} | ||
| serviceCredentialsFileContent: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_CREDENTIAL_FILE_CONTENT }} | ||
| groups: ${{ github.event.inputs.testerGroups || vars.TESTER_GROUPS }} | ||
| file: app/build/outputs/apk/production/preRelease/app-production-preRelease.apk | ||
| releaseNotes: ${{ steps.generate-release-notes.outputs.RELEASE_NOTES }} | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.