Skip to content

Commit

Permalink
Enable Running Custom Commands in Firebase Deployments
Browse files Browse the repository at this point in the history
Signed-off-by: Paul Schmiedmayer <[email protected]>
  • Loading branch information
PSchmiedmayer authored Mar 11, 2024
1 parent e7025f1 commit b5c78ff
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/firebase-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ on:
required: false
type: string
default: '.'
customcommand:
description: 'Custom command to be executed before the deployment. Can be used to, e.g., install dependencies for cloud functions.'
required: false
type: string
default: ''
arguments:
description: 'Arguments passed to the firebase deploy command'
required: false
Expand Down Expand Up @@ -44,6 +49,9 @@ jobs:
java-version: '17'
- name: Install Firebase CLI Tools
run: npm install -g firebase-tools
- name: Run custom command
if: ${{ inputs.customcommand != '' }}
run: ${{ inputs.customcommand }}
- name: Deploy to Firebase
run: |
echo -n "${{ secrets.GOOGLE_APPLICATION_CREDENTIALS_BASE64 }}" | base64 -d > "$RUNNER_TEMP/google-application-credentials.json"
Expand Down

0 comments on commit b5c78ff

Please sign in to comment.