generated from nimblehq/git-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Chore] Generate & update sample project
- Loading branch information
1 parent
db5cd5e
commit 102b1f1
Showing
7 changed files
with
270 additions
and
165 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 |
---|---|---|
@@ -0,0 +1,52 @@ | ||
name: Deploy production app to Firebase App Distribution | ||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
deploy_android: | ||
name: Deploy Android app to Firebase App Distribution | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 30 | ||
environment: production | ||
defaults: | ||
run: | ||
working-directory: ./sample | ||
steps: | ||
- name: Set up JDK | ||
uses: actions/setup-java@v2 | ||
with: | ||
distribution: 'temurin' | ||
java-version: '17' | ||
|
||
- name: Checkout source code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Cache Gradle | ||
uses: actions/cache@v3 | ||
with: | ||
path: | | ||
~/.gradle/caches/modules-* | ||
~/.gradle/caches/jars-* | ||
~/.gradle/caches/build-cache-* | ||
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }} | ||
restore-keys: | | ||
${{ runner.os }}-gradle- | ||
- name: Set up the necessary config | ||
run: | | ||
echo "${{ secrets.BUILD_KONFIG_PROPERTIES }}" > buildKonfig.properties | ||
echo "${{ secrets.ANDROID_SIGNING_PROPERTIES }}" > signing.properties | ||
echo "${{ secrets.ANDROID_RELEASE_KEYSTORE }}" | base64 --decode > config/release.keystore | ||
- name: Build production APK | ||
run: ./gradlew assembleProductionRelease -PversionCode=$GITHUB_RUN_NUMBER | ||
|
||
- name: Deploy production to Firebase | ||
uses: wzieba/[email protected] | ||
with: | ||
appId: ${{ vars.ANDROID_FIREBASE_APP_ID }} | ||
serviceCredentialsFileContent: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_CREDENTIAL_FILE_CONTENT }} | ||
groups: nimble | ||
file: sample/android/build/outputs/apk/production/release/android-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 |
---|---|---|
@@ -0,0 +1,49 @@ | ||
name: Deploy staging app to Firebase App Distribution | ||
on: | ||
push: | ||
branches: | ||
- develop | ||
|
||
jobs: | ||
deploy_android: | ||
name: Deploy Android app to Firebase App Distribution | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 30 | ||
environment: staging | ||
defaults: | ||
run: | ||
working-directory: ./sample | ||
steps: | ||
- name: Set up JDK | ||
uses: actions/setup-java@v2 | ||
with: | ||
distribution: 'temurin' | ||
java-version: '17' | ||
|
||
- name: Checkout source code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Cache Gradle | ||
uses: actions/cache@v3 | ||
with: | ||
path: | | ||
~/.gradle/caches/modules-* | ||
~/.gradle/caches/jars-* | ||
~/.gradle/caches/build-cache-* | ||
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }} | ||
restore-keys: | | ||
${{ runner.os }}-gradle- | ||
- name: Set up the necessary config | ||
run: echo "${{ secrets.BUILD_KONFIG_PROPERTIES }}" > buildKonfig.properties | ||
|
||
- name: Build staging APK | ||
run: ./gradlew assembleStagingDebug -PversionCode=$GITHUB_RUN_NUMBER | ||
|
||
- name: Deploy staging to Firebase | ||
uses: wzieba/[email protected] | ||
with: | ||
appId: ${{ vars.ANDROID_FIREBASE_APP_ID }} | ||
serviceCredentialsFileContent: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_CREDENTIAL_FILE_CONTENT }} | ||
groups: nimble | ||
file: sample/android/build/outputs/apk/staging/debug/android-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
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
Oops, something went wrong.