Skip to content

Commit

Permalink
Add Environment to Firebase Deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
PSchmiedmayer committed May 16, 2024
1 parent b666569 commit 5938a9d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/firebase-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ on:
required: false
type: string
default: ''
environment:
description: 'GitHub deployment environment to optionally adjust access to variables and secrets with additional protection rules: https://docs.github.com/en/actions/deployment/targeting-different-environments/using-environments-for-deployment'
required: false
type: string
default: ''
secrets:
GOOGLE_APPLICATION_CREDENTIALS_BASE64:
description: 'The Base64 version of the private key JSON file for the service account. You can lean more about how to generate the JSON at https://cloud.google.com/iam/docs/service-accounts-create. The service account must have the minimally required permissions documented at https://firebase.google.com/docs/projects/iam/permissions.'
Expand All @@ -38,7 +43,12 @@ jobs:
defaults:
run:
working-directory: ${{ inputs.path }}
environment: ${{ inputs.environment }}
steps:
- name: Check environment
run: |
echo "env.selfhosted: ${{ env.selfhosted }}"
echo "environment: ${{ inputs.environment }}"
- uses: actions/checkout@v4
- name: Setup NodeJS
uses: actions/setup-node@v3
Expand Down

0 comments on commit 5938a9d

Please sign in to comment.