generated from nimblehq/git-template
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #270 from nimblehq/chore/198-add-release-note-fire…
…base-deploy [#198] Generate and add "release notes" when distributing new builds on Firebase (staging and production)
- Loading branch information
Showing
16 changed files
with
279 additions
and
4 deletions.
There are no files selected for viewing
This file contains 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 |
---|---|---|
|
@@ -57,10 +57,24 @@ jobs: | |
- name: Build Android apk | ||
run: flutter build apk --flavor production --release --build-number $GITHUB_RUN_NUMBER | ||
|
||
- name: Find HEAD commit | ||
id: head | ||
run: echo "sha=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT | ||
|
||
- name: Build changelog on "main" | ||
id: changelog | ||
uses: mikepenz/release-changelog-builder-action@v4 | ||
with: | ||
configuration: ".github/workflows/configs/changelog-config.json" | ||
# Listing PRs from the last tag to the HEAD commit | ||
toTag: ${{ steps.head.outputs.sha }} | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Deploy Android Production to Firebase | ||
uses: wzieba/[email protected] | ||
with: | ||
appId: ${{ vars.FIREBASE_ANDROID_APP_ID }} | ||
serviceCredentialsFileContent: ${{ secrets.FIREBASE_DISTRIBUTION_CREDENTIAL_JSON }} | ||
groups: ${{ vars.FIREBASE_DISTRIBUTION_TESTER_GROUPS }} | ||
releaseNotes: ${{ steps.changelog.outputs.changelog }} | ||
file: build/app/outputs/flutter-apk/app-production-release.apk |
This file contains 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 |
---|---|---|
|
@@ -49,10 +49,31 @@ jobs: | |
- name: Build Android apk | ||
run: flutter build apk --flavor staging --debug --build-number $GITHUB_RUN_NUMBER | ||
|
||
- name: Find HEAD commit | ||
id: head | ||
run: echo "sha=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT | ||
|
||
- name: Limit changelog to the latest pull request only | ||
uses: jossef/action-set-json-field@v2 | ||
with: | ||
file: .github/workflows/configs/changelog-config.json | ||
field: max_pull_requests | ||
value: 1 | ||
|
||
- name: Build changelog on "develop" | ||
id: changelog | ||
uses: mikepenz/release-changelog-builder-action@v4 | ||
with: | ||
configuration: ".github/workflows/configs/changelog-config.json" | ||
# Listing PRs from the last tag to the HEAD commit | ||
toTag: ${{ steps.head.outputs.sha }} | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Deploy Android Staging to Firebase | ||
uses: wzieba/[email protected] | ||
with: | ||
appId: ${{ vars.FIREBASE_ANDROID_APP_ID }} | ||
serviceCredentialsFileContent: ${{ secrets.FIREBASE_DISTRIBUTION_CREDENTIAL_JSON }} | ||
groups: ${{ vars.FIREBASE_DISTRIBUTION_TESTER_GROUPS }} | ||
releaseNotes: ${{ steps.changelog.outputs.changelog }} | ||
file: build/app/outputs/flutter-apk/app-staging-debug.apk |
This file contains 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,32 @@ | ||
{ | ||
"categories": [ | ||
{ | ||
"title": "## ✨ Features", | ||
"labels": [ | ||
"type : feature" | ||
] | ||
}, | ||
{ | ||
"title": "## 🐛 Bug fixes", | ||
"labels": [ | ||
"type : bug" | ||
] | ||
}, | ||
{ | ||
"title": "## 🧹 Chores", | ||
"labels": [ | ||
"type : chore" | ||
] | ||
}, | ||
{ | ||
"title": "## Others", | ||
"exclude_labels": [ | ||
"type : feature", | ||
"type : bug", | ||
"type : chore", | ||
"type : release" | ||
] | ||
} | ||
], | ||
"max_pull_requests": 200 | ||
} |
This file contains 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
This file contains 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 |
---|---|---|
|
@@ -51,10 +51,24 @@ jobs: | |
- name: Build Android apk | ||
run: flutter build apk --flavor production --release --build-number $GITHUB_RUN_NUMBER | ||
|
||
- name: Find HEAD commit | ||
id: head | ||
run: echo "sha=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT | ||
|
||
- name: Build changelog on "main" | ||
id: changelog | ||
uses: mikepenz/release-changelog-builder-action@v4 | ||
with: | ||
configuration: ".github/workflows/configs/changelog-config.json" | ||
# Listing PRs from the last tag to the HEAD commit | ||
toTag: ${{#mustacheCase}}steps.head.outputs.sha{{/mustacheCase}} | ||
token: ${{#mustacheCase}}secrets.GITHUB_TOKEN{{/mustacheCase}} | ||
|
||
- name: Deploy Android Production to Firebase | ||
uses: wzieba/[email protected] | ||
with: | ||
appId: ${{#mustacheCase}}vars.FIREBASE_ANDROID_APP_ID{{/mustacheCase}} | ||
serviceCredentialsFileContent: ${{#mustacheCase}}secrets.FIREBASE_DISTRIBUTION_CREDENTIAL_JSON{{/mustacheCase}} | ||
groups: ${{#mustacheCase}}vars.FIREBASE_DISTRIBUTION_TESTER_GROUPS{{/mustacheCase}} | ||
releaseNotes: ${{#mustacheCase}}steps.changelog.outputs.changelog{{/mustacheCase}} | ||
file: build/app/outputs/flutter-apk/app-production-release.apk |
This file contains 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 |
---|---|---|
|
@@ -43,10 +43,31 @@ jobs: | |
- name: Build Android apk | ||
run: flutter build apk --flavor staging --debug --build-number $GITHUB_RUN_NUMBER | ||
|
||
- name: Find HEAD commit | ||
id: head | ||
run: echo "sha=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT | ||
|
||
- name: Limit changelog to the latest pull request only | ||
uses: jossef/action-set-json-field@v2 | ||
with: | ||
file: .github/workflows/configs/changelog-config.json | ||
field: max_pull_requests | ||
value: 1 | ||
|
||
- name: Build changelog on "develop" | ||
id: changelog | ||
uses: mikepenz/release-changelog-builder-action@v4 | ||
with: | ||
configuration: ".github/workflows/configs/changelog-config.json" | ||
# Listing PRs from the last tag to the HEAD commit | ||
toTag: ${{#mustacheCase}}steps.head.outputs.sha{{/mustacheCase}} | ||
token: ${{#mustacheCase}}secrets.GITHUB_TOKEN{{/mustacheCase}} | ||
|
||
- name: Deploy Android Staging to Firebase | ||
uses: wzieba/[email protected] | ||
with: | ||
appId: ${{#mustacheCase}}vars.FIREBASE_ANDROID_APP_ID{{/mustacheCase}} | ||
serviceCredentialsFileContent: ${{#mustacheCase}}secrets.FIREBASE_DISTRIBUTION_CREDENTIAL_JSON{{/mustacheCase}} | ||
groups: ${{#mustacheCase}}vars.FIREBASE_DISTRIBUTION_TESTER_GROUPS{{/mustacheCase}} | ||
releaseNotes: ${{#mustacheCase}}steps.changelog.outputs.changelog{{/mustacheCase}} | ||
file: build/app/outputs/flutter-apk/app-staging-debug.apk |
32 changes: 32 additions & 0 deletions
32
bricks/template/__brick__/.github/workflows/configs/changelog-config.json
This file contains 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,32 @@ | ||
{ | ||
"categories": [ | ||
{ | ||
"title": "## ✨ Features", | ||
"labels": [ | ||
"type : feature" | ||
] | ||
}, | ||
{ | ||
"title": "## 🐛 Bug fixes", | ||
"labels": [ | ||
"type : bug" | ||
] | ||
}, | ||
{ | ||
"title": "## 🧹 Chores", | ||
"labels": [ | ||
"type : chore" | ||
] | ||
}, | ||
{ | ||
"title": "## Others", | ||
"exclude_labels": [ | ||
"type : feature", | ||
"type : bug", | ||
"type : chore", | ||
"type : release" | ||
] | ||
} | ||
], | ||
"max_pull_requests": 200 | ||
} |
This file contains 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
This file contains 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
This file contains 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
This file contains 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 |
---|---|---|
|
@@ -51,10 +51,24 @@ jobs: | |
- name: Build Android apk | ||
run: flutter build apk --flavor production --release --build-number $GITHUB_RUN_NUMBER | ||
|
||
- name: Find HEAD commit | ||
id: head | ||
run: echo "sha=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT | ||
|
||
- name: Build changelog on "main" | ||
id: changelog | ||
uses: mikepenz/release-changelog-builder-action@v4 | ||
with: | ||
configuration: ".github/workflows/configs/changelog-config.json" | ||
# Listing PRs from the last tag to the HEAD commit | ||
toTag: ${{ steps.head.outputs.sha }} | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Deploy Android Production to Firebase | ||
uses: wzieba/[email protected] | ||
with: | ||
appId: ${{ vars.FIREBASE_ANDROID_APP_ID }} | ||
serviceCredentialsFileContent: ${{ secrets.FIREBASE_DISTRIBUTION_CREDENTIAL_JSON }} | ||
groups: ${{ vars.FIREBASE_DISTRIBUTION_TESTER_GROUPS }} | ||
releaseNotes: ${{ steps.changelog.outputs.changelog }} | ||
file: build/app/outputs/flutter-apk/app-production-release.apk |
This file contains 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 |
---|---|---|
|
@@ -43,10 +43,31 @@ jobs: | |
- name: Build Android apk | ||
run: flutter build apk --flavor staging --debug --build-number $GITHUB_RUN_NUMBER | ||
|
||
- name: Find HEAD commit | ||
id: head | ||
run: echo "sha=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT | ||
|
||
- name: Limit changelog to the latest pull request only | ||
uses: jossef/action-set-json-field@v2 | ||
with: | ||
file: .github/workflows/configs/changelog-config.json | ||
field: max_pull_requests | ||
value: 1 | ||
|
||
- name: Build changelog on "develop" | ||
id: changelog | ||
uses: mikepenz/release-changelog-builder-action@v4 | ||
with: | ||
configuration: ".github/workflows/configs/changelog-config.json" | ||
# Listing PRs from the last tag to the HEAD commit | ||
toTag: ${{ steps.head.outputs.sha }} | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Deploy Android Staging to Firebase | ||
uses: wzieba/[email protected] | ||
with: | ||
appId: ${{ vars.FIREBASE_ANDROID_APP_ID }} | ||
serviceCredentialsFileContent: ${{ secrets.FIREBASE_DISTRIBUTION_CREDENTIAL_JSON }} | ||
groups: ${{ vars.FIREBASE_DISTRIBUTION_TESTER_GROUPS }} | ||
releaseNotes: ${{ steps.changelog.outputs.changelog }} | ||
file: build/app/outputs/flutter-apk/app-staging-debug.apk |
This file contains 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,32 @@ | ||
{ | ||
"categories": [ | ||
{ | ||
"title": "## ✨ Features", | ||
"labels": [ | ||
"type : feature" | ||
] | ||
}, | ||
{ | ||
"title": "## 🐛 Bug fixes", | ||
"labels": [ | ||
"type : bug" | ||
] | ||
}, | ||
{ | ||
"title": "## 🧹 Chores", | ||
"labels": [ | ||
"type : chore" | ||
] | ||
}, | ||
{ | ||
"title": "## Others", | ||
"exclude_labels": [ | ||
"type : feature", | ||
"type : bug", | ||
"type : chore", | ||
"type : release" | ||
] | ||
} | ||
], | ||
"max_pull_requests": 200 | ||
} |
This file contains 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.