Update firebase.yml

This commit is contained in:
yude 2020-09-05 08:46:34 +09:00
parent 1238547381
commit d1be334a80
No known key found for this signature in database
GPG Key ID: A49BFB97E0AB5435
1 changed files with 32 additions and 15 deletions

View File

@ -1,21 +1,38 @@
name: Deploy to Firebase Hosting
on: [push]
name: Firebase Hosting
on:
push:
branches:
- master
jobs:
Firebase:
name: Firebase
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
- name: Checkout Repo
uses: actions/checkout@master
- name: Setup Node
uses: actions/setup-node@v1
with:
node-version: 10.x
registry-url: 'https://registry.npmjs.org'
- name: Install Dependencies
- name: Install Dependencies
run: npm install
- name: Deploy to Firebase Hosting
run: |
npm run deploy --token=${{ secrets.FIREBASE_TOKEN }}
- name: Archive Production Artifact
uses: actions/upload-artifact@master
with:
name: dist
path: dist
deploy:
name: Deploy
needs: build
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@master
- name: Download Artifact
uses: actions/download-artifact@master
with:
name: dist
path: dist
- name: Deploy to Firebase
uses: w9jds/firebase-action@master
with:
args: deploy --only hosting:yudemoe
env:
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}