Skip to content

Fix deploy, make resource option #4

Fix deploy, make resource option

Fix deploy, make resource option #4

name: Test & Deploy Python Functions
on:
push:
branches: [staging, prod]
workflow_dispatch:
inputs:
environment:
type: choice
options: [staging, prod]
description: 'Environment to deploy to'
required: true
permissions:
contents: read
concurrency:
group: deploy-${{ github.ref }}
cancel-in-progress: false
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# Test the local action
- uses: ./
with:
environment: ${{ github.event_name == 'push' && github.ref_name || inputs.environment }}
service_account_json: ${{ secrets[format('FIREBASE_{0}_SERVICE_ACCOUNT', github.event_name == 'push' && github.ref_name || inputs.environment)] }}
project_id: ${{ vars[format('FIREBASE_{0}_PROJECT_ID', github.event_name == 'push' && github.ref_name || inputs.environment)] }}