Skip to content

Tweak button frozen logic. #15

Tweak button frozen logic.

Tweak button frozen logic. #15

name: Deploy cloud functions
on:
push:
branches:
- main
paths:
- functions/**
- .github/workflows/cloud-functions.yml
jobs:
build_and_deploy_functions:
name: Build and deploy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
cache: "npm"
cache-dependency-path: website/package-lock.json
- run: cd functions && npm install
- run: echo "CF_TURNSTILE_KEY=${{ secrets.THE_BUTTON_TURNSTILE_SECRET_KEY }}" > ./functions/.env
- uses: w9jds/[email protected]
with:
args: deploy --only functions
env:
GCP_SA_KEY: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_LOST_PIXELS_PROD }}