Update firebase.yml
This commit is contained in:
parent
1238547381
commit
d1be334a80
43
.github/workflows/firebase.yml
vendored
43
.github/workflows/firebase.yml
vendored
@ -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 }}
|
Loading…
Reference in New Issue
Block a user