Skip to content

Commit

Permalink
Merge pull request #353 from cioos-siooc/351-deploy-firebase-function…
Browse files Browse the repository at this point in the history
…s-action-failing

Fix Failing Firebase Deploy Action
  • Loading branch information
sorochak authored Apr 17, 2024
2 parents 7a37360 + 4400096 commit 6caad3d
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/firebase-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 }}
Expand Down

0 comments on commit 6caad3d

Please sign in to comment.