Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Failing Firebase Deploy Action #353

Merged
merged 4 commits into from
Apr 17, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading