This repository has been archived by the owner on Feb 11, 2024. It is now read-only.
📚 環境変数の更新など (#112) #80
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |