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.
[#198] Add Generate release notes step
- Loading branch information
1 parent
0fb35c2
commit c7f17dc
Showing
7 changed files
with
30 additions
and
10 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 |
---|---|---|
|
@@ -44,17 +44,21 @@ jobs: | |
ENV: ${{ secrets.ENV }} | ||
run: | | ||
echo -e "$ENV" > .env | ||
echo "RELEASE_NOTE_CONTENT="$(git log --merges --pretty=%B $(git describe --abbrev=0 --tags)..HEAD | grep "\[")"" | ||
# App Bundle requires Firebase connected to Play Store to upload https://appdistribution.page.link/KPoa | ||
- name: Build Android apk | ||
run: flutter build apk --flavor production --debug --build-number $GITHUB_RUN_NUMBER | ||
|
||
- name: Generate release notes | ||
id: generate-release-notes | ||
run: | | ||
echo "RELEASE_NOTE_CONTENT=$((git log -1 --merges | grep "\[") && echo "" || echo $(git log -1 --merges --format=%B))" >> $GITHUB_OUTPUT | ||
- 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: ${{ env.RELEASE_NOTE }} | ||
releaseNotes: ${{ steps.generate-release-notes.outputs.RELEASE_NOTE_CONTENT }} | ||
file: build/app/outputs/flutter-apk/app-production-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 |
---|---|---|
|
@@ -44,17 +44,21 @@ jobs: | |
ENV: ${{ secrets.ENV }} | ||
run: | | ||
echo -e "$ENV" > .env.staging | ||
echo "RELEASE_NOTE_CONTENT="$((git log -1 --merges | grep "\[") | grep . && echo "" || echo $(git log -1 --merges --format=%B))"" | ||
# App Bundle requires Firebase connected to Play Store to upload https://appdistribution.page.link/KPoa | ||
- name: Build Android apk | ||
run: flutter build apk --flavor staging --debug --build-number $GITHUB_RUN_NUMBER | ||
|
||
- name: Generate release notes | ||
id: generate-release-notes | ||
run: | | ||
echo "RELEASE_NOTE_CONTENT=$((git log -1 --merges | grep "\[") && echo "" || echo $(git log -1 --merges --format=%B))" >> $GITHUB_OUTPUT | ||
- 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: ${{ env.RELEASE_NOTE }} | ||
releaseNotes: ${{ steps.generate-release-notes.outputs.RELEASE_NOTE_CONTENT }} | ||
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
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 |
---|---|---|
|
@@ -38,17 +38,21 @@ jobs: | |
ENV: ${{#mustacheCase}}secrets.ENV{{/mustacheCase}} | ||
run: | | ||
echo -e "$ENV" > .env | ||
echo "RELEASE_NOTE_CONTENT="$(git log --merges --pretty=%B $(git describe --abbrev=0 --tags)..HEAD | grep "\[")"" | ||
# App Bundle requires Firebase connected to Play Store to upload https://appdistribution.page.link/KPoa | ||
- name: Build Android apk | ||
run: flutter build apk --flavor production --debug --build-number $GITHUB_RUN_NUMBER | ||
|
||
- name: Generate release notes | ||
id: generate-release-notes | ||
run: | | ||
echo "RELEASE_NOTE_CONTENT=$((git log -1 --merges | grep "\[") && echo "" || echo $(git log -1 --merges --format=%B))" >> $GITHUB_OUTPUT | ||
- 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}} env.RELEASE_NOTE {{/mustacheCase}} | ||
releaseNotes: ${{#mustacheCase}} steps.generate-release-notes.outputs.RELEASE_NOTE_CONTENT {{/mustacheCase}} | ||
file: build/app/outputs/flutter-apk/app-production-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 |
---|---|---|
|
@@ -38,17 +38,21 @@ jobs: | |
ENV: ${{#mustacheCase}}secrets.ENV{{/mustacheCase}} | ||
run: | | ||
echo -e "$ENV" > .env.staging | ||
echo "RELEASE_NOTE_CONTENT="$((git log -1 --merges | grep "\[") | grep . && echo "" || echo $(git log -1 --merges --format=%B))"" | ||
# App Bundle requires Firebase connected to Play Store to upload https://appdistribution.page.link/KPoa | ||
- name: Build Android apk | ||
run: flutter build apk --flavor staging --debug --build-number $GITHUB_RUN_NUMBER | ||
|
||
- name: Generate release notes | ||
id: generate-release-notes | ||
run: | | ||
echo "RELEASE_NOTE_CONTENT=$((git log -1 --merges | grep "\[") && echo "" || echo $(git log -1 --merges --format=%B))" >> $GITHUB_OUTPUT | ||
- 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}} env.RELEASE_NOTE {{/mustacheCase}} | ||
releaseNotes: ${{#mustacheCase}} steps.generate-release-notes.outputs.RELEASE_NOTE_CONTENT {{/mustacheCase}} | ||
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
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