LoginSignup
5
5

More than 3 years have passed since last update.

Github Actions で Nuxt App を Firebase Hosting へデプロイ

Posted at

FIREBASE_TOKEN の取得

firebase login:ci して FIREBASE_TOKEN を取得する

Github Secrets に設定

github.com_hirose504_nuxt-sandbox_settings_secrets_FIREBASE_TOKEN.png

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 }}
5
5
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
5