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.
- Loading branch information
Showing
3 changed files
with
40 additions
and
56 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 |
---|---|---|
|
@@ -4,6 +4,7 @@ on: | |
push: | ||
branches: | ||
- main | ||
- test-lucas | ||
|
||
jobs: | ||
build_and_deploy_android: | ||
|
@@ -15,57 +16,13 @@ jobs: | |
- name: Check out | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up Java JDK | ||
uses: actions/setup-java@v3 | ||
- name: Build changelog on "main" | ||
id: changelog | ||
uses: mikepenz/release-changelog-builder-action@v4 | ||
with: | ||
distribution: 'adopt' | ||
java-version: '11' | ||
configuration: ".github/workflows/configuration.json" | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Set up Flutter environment | ||
uses: subosito/flutter-action@v2 | ||
with: | ||
channel: 'stable' | ||
flutter-version: '3.10.5' | ||
|
||
- name: Generate new project | ||
run: | | ||
dart pub global activate mason_cli | ||
mason get | ||
mason make template -c mason-config.json | ||
- name: Get Flutter dependencies | ||
run: flutter pub get | ||
|
||
- name: Run code generator | ||
run: flutter packages pub run build_runner build --delete-conflicting-outputs | ||
|
||
- name: Set up .env | ||
env: | ||
ENV: ${{ secrets.ENV }} | ||
- name: Print release notes | ||
run: | | ||
echo -e "$ENV" > .env | ||
- name: Set up release signing configs | ||
env: | ||
ANDROID_RELEASE_KEYSTORE_BASE64: ${{ secrets.ANDROID_RELEASE_KEYSTORE_BASE64 }} | ||
ANDROID_SIGNING_PROPERTIES: ${{ secrets.ANDROID_SIGNING_PROPERTIES }} | ||
run: | | ||
echo $ANDROID_RELEASE_KEYSTORE_BASE64 | base64 --decode > android/config/release.keystore | ||
echo "$ANDROID_SIGNING_PROPERTIES" > android/signing.properties | ||
# 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 --release --build-number $GITHUB_RUN_NUMBER | ||
|
||
- name: Get PR information | ||
uses: 8BitJonny/[email protected] | ||
id: PR | ||
|
||
- 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.PR.outputs.pr_body }} | ||
file: build/app/outputs/flutter-apk/app-production-release.apk | ||
echo ${{ steps.changelog.outputs.changelog }} |
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 |
---|---|---|
|
@@ -4,7 +4,7 @@ on: | |
push: | ||
branches: | ||
- develop | ||
- chore/198-test-merge-1 | ||
- test-lucas | ||
|
||
jobs: | ||
build_and_deploy_android: | ||
|
@@ -16,10 +16,15 @@ jobs: | |
- name: Check out | ||
uses: actions/checkout@v3 | ||
|
||
- name: Get PR information | ||
uses: 8BitJonny/[email protected] | ||
id: PR | ||
- name: Build changelog on "develop" | ||
id: changelog | ||
uses: mikepenz/release-changelog-builder-action@v4 | ||
with: | ||
configuration: ".github/workflows/configuration.json" | ||
fromTag: ${{ github.event.pull_request.head.ref }} | ||
toTag: ${{ github.event.pull_request.head.ref }} | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Print release notes | ||
run: | | ||
echo ${{ steps.PR.outputs.pr_body }} | ||
echo ${{ steps.changelog.outputs.changelog }} |
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,22 @@ | ||
{ | ||
"categories": [ | ||
{ | ||
"title": "## 🚀 Features", | ||
"labels": [ | ||
"type : feature" | ||
] | ||
}, | ||
{ | ||
"title": "## 🐛 Bug fixes", | ||
"labels": [ | ||
"type : bug" | ||
] | ||
}, | ||
{ | ||
"title": "## 🧪 Chores", | ||
"labels": [ | ||
"type : chore" | ||
] | ||
} | ||
] | ||
} |