-
Notifications
You must be signed in to change notification settings - Fork 3
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 #353 from cioos-siooc/351-deploy-firebase-function…
…s-action-failing Fix Failing Firebase Deploy Action
- Loading branch information
Showing
1 changed file
with
8 additions
and
6 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 |
---|---|---|
|
@@ -17,11 +17,14 @@ jobs: | |
- name: Install Dependencies | ||
run: npm ci | ||
working-directory: firebase-functions | ||
- name: Install Firebase CLI | ||
run: npm install -g firebase-tools | ||
- name: Install Dependencies | ||
run: npm ci | ||
working-directory: firebase-functions/functions | ||
- name: Create .env file | ||
- name: Authenticate Firebase and Deploy | ||
run: | | ||
echo "Creating .env file..." | ||
echo "GMAIL_USER=${{ secrets.GMAIL_USER }}" >> .env | ||
echo "GMAIL_PASS=${{ secrets.GMAIL_PASS }}" >> .env | ||
echo "DATACITE_AUTH_HASH=${{ secrets.DATACITE_AUTH_HASH }}" >> .env | ||
|
@@ -31,12 +34,11 @@ jobs: | |
echo "GITHUB_AUTH=${{ secrets.ISSUE_CREATOR_PAT }}" >> .env | ||
echo "REACT_APP_GOOGLE_CLOUD_API_KEY=${{ secrets.REACT_APP_GOOGLE_CLOUD_API_KEY }}" >> .env | ||
echo "REACT_APP_GOOGLE_CLOUD_API_KEY_DEV=${{ secrets.REACT_APP_GOOGLE_CLOUD_API_KEY_DEV }}" >> .env | ||
echo "Setting Firebase Project..." | ||
firebase use default | ||
echo "Deploying to Firebase..." | ||
firebase deploy --only functions --token ${{ secrets.FIREBASE_TOKEN }} | ||
working-directory: firebase-functions/functions | ||
- name: Deploy to Firebase | ||
uses: w9jds/[email protected] | ||
with: | ||
projectId: cioos-metadata-form | ||
args: deploy --only functions | ||
env: | ||
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }} | ||
GMAIL_USER: ${{ secrets.GMAIL_USER }} | ||
|