From 5938a9d23a0694eb446e93eebab512ef797cb0ac Mon Sep 17 00:00:00 2001 From: Paul Schmiedmayer Date: Thu, 16 May 2024 15:26:03 -0700 Subject: [PATCH] Add Environment to Firebase Deployment --- .github/workflows/firebase-deploy.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/firebase-deploy.yml b/.github/workflows/firebase-deploy.yml index e08715d..b493602 100644 --- a/.github/workflows/firebase-deploy.yml +++ b/.github/workflows/firebase-deploy.yml @@ -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.' @@ -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