-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
…ount-firebase [#522] Replace Firebase Token with Google Service Account
- Loading branch information
Showing
8 changed files
with
33 additions
and
13 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 |
---|---|---|
|
@@ -3,7 +3,7 @@ name: Deploy Production Build To Firebase | |
# SECRETS needed: | ||
### SSH_PRIVATE_KEY for Match Repo | ||
### MATCH_PASS | ||
### FIREBASE_TOKEN | ||
### FIREBASE_GOOGLE_APPLICATION_CREDENTIALS_BASE64 | ||
|
||
on: | ||
push: | ||
|
@@ -50,6 +50,13 @@ jobs: | |
touch .env | ||
echo $ENV | base64 --decode > .env | ||
- name: Read Google Service Account | ||
id: firebase_service_account | ||
uses: timheuer/[email protected] | ||
with: | ||
fileName: 'firebase_service_account.json' | ||
encodedString: ${{ secrets.FIREBASE_GOOGLE_APPLICATION_CREDENTIALS_BASE64 }} | ||
|
||
- name: Bundle install | ||
run: bundle install | ||
|
||
|
@@ -80,7 +87,7 @@ jobs: | |
- name: Build Production App and Distribute to Firebase | ||
run: bundle exec fastlane buildProductionAndUploadToFirebase | ||
env: | ||
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }} | ||
GOOGLE_APPLICATION_CREDENTIALS: ${{ steps.firebase_service_account.outputs.filePath }} | ||
|
||
- name: Upload Artifacts | ||
uses: actions/upload-artifact@v3 | ||
|
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 |
---|---|---|
|
@@ -3,7 +3,7 @@ name: Deploy Staging Build To Firebase | |
# SECRETS needed: | ||
### SSH_PRIVATE_KEY for Match Repo | ||
### MATCH_PASS | ||
### FIREBASE_TOKEN | ||
### FIREBASE_GOOGLE_APPLICATION_CREDENTIALS_BASE64 | ||
|
||
on: | ||
push: | ||
|
@@ -55,6 +55,13 @@ jobs: | |
touch .env | ||
echo $ENV | base64 --decode > .env | ||
- name: Read Google Service Account | ||
id: firebase_service_account | ||
uses: timheuer/[email protected] | ||
with: | ||
fileName: 'firebase_service_account.json' | ||
encodedString: ${{ secrets.FIREBASE_GOOGLE_APPLICATION_CREDENTIALS_BASE64 }} | ||
|
||
- name: Bundle install | ||
# if: steps.bundleCache.outputs.cache-hit != 'true' | ||
run: bundle install | ||
|
@@ -86,7 +93,7 @@ jobs: | |
- name: Build App and Distribute to Firebase | ||
run: bundle exec fastlane buildStagingAndUploadToFirebase | ||
env: | ||
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }} | ||
GOOGLE_APPLICATION_CREDENTIALS: ${{ steps.firebase_service_account.outputs.filePath }} | ||
|
||
- name: Upload Artifacts | ||
uses: actions/upload-artifact@v3 | ||
|
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 |
---|---|---|
|
@@ -3,7 +3,7 @@ name: Test Upload Build to Firebase | |
# SECRETS needed: | ||
### SSH_PRIVATE_KEY for Match Repo | ||
### MATCH_PASS | ||
### FIREBASE_TOKEN | ||
### FIREBASE_GOOGLE_APPLICATION_CREDENTIALS_BASE64 | ||
### STAGING_FIREBASE_APP_ID | ||
### TEAM_ID | ||
|
||
|
@@ -34,6 +34,13 @@ jobs: | |
yarn global add firebase-tools | ||
echo "$(yarn global bin)" >> $GITHUB_PATH | ||
- name: Read Google Service Account | ||
id: firebase_service_account | ||
uses: timheuer/[email protected] | ||
with: | ||
fileName: 'firebase_service_account.json' | ||
encodedString: ${{ secrets.FIREBASE_GOOGLE_APPLICATION_CREDENTIALS_BASE64 }} | ||
|
||
- name: Bundle install | ||
run: bundle install | ||
|
||
|
@@ -67,7 +74,7 @@ jobs: | |
- name: Build App and Distribute to Firebase | ||
run: bundle exec fastlane buildStagingAndUploadToFirebase | ||
env: | ||
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }} | ||
GOOGLE_APPLICATION_CREDENTIALS: ${{ steps.firebase_service_account.outputs.filePath }} | ||
|
||
- name: Upload Artifacts | ||
uses: actions/upload-artifact@v3 | ||
|
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