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

View File

@ -1,21 +1,38 @@
name: Deploy to Firebase Hosting name: Firebase Hosting
on:
on: [push] push:
branches:
- master
jobs: jobs:
Firebase: build:
name: Firebase name: Build
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout Repo - name: Checkout Repo
uses: actions/checkout@master 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 run: npm install
- name: Deploy to Firebase Hosting - name: Archive Production Artifact
run: | uses: actions/upload-artifact@master
npm run deploy --token=${{ secrets.FIREBASE_TOKEN }} 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 }}