Skip to content
This repository has been archived by the owner on Feb 11, 2024. It is now read-only.

📚 環境変数の更新など (#112) #80

📚 環境変数の更新など (#112)

📚 環境変数の更新など (#112) #80

# This file was auto-generated by the Firebase CLI
# https://github.com/firebase/firebase-tools
name: Deploy to Firebase Hosting/Function on merge
"on":
push:
branches:
- main
jobs:
deploy-firebase-hosting-functions:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Create env file
run: |
echo "${{ secrets.CONFIG_VALUES }}" >> .env
echo ${{ secrets.FIREBASE_SERVICE_ACCOUNT }} | base64 --decode > ./firebase-service-account.json
- name: Install npm packages
run: |
npm ci && npm run build
- name: Deploy to Firebase
run: |
npx firebase-tools deploy
env:
GOOGLE_APPLICATION_CREDENTIALS: ./firebase-service-account.json