FIREBASE_TOKEN の取得
firebase login:ci
して FIREBASE_TOKEN
を取得する
Github Secrets に設定
Github Actions を設定
.github/workflows/firebase.yml
name: Deploy FIrebase Workflow
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: nuxt/actions-yarn@master
with:
args: install
- uses: nuxt/actions-yarn@master
with:
args: generate
- name: deploy
run: yarn firebase deploy --token $FIREBASE_TOKEN
env:
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}