fix build and deploy workflow script

This commit is contained in:
Amruth Pillai 2020-12-20 21:38:28 +05:30
parent 8bac6c79a8
commit 534736a3a4
No known key found for this signature in database
GPG Key ID: 91D411C549531390
2 changed files with 2 additions and 19 deletions

View File

@ -7,7 +7,7 @@ on:
jobs:
build:
name: Build
name: Build and Deploy
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
@ -16,23 +16,6 @@ jobs:
run: npm install
- name: Build
run: npm run build
- name: Archive Production Artifact
uses: actions/upload-artifact@master
with:
name: public
path: public
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: public
- name: Deploy to Firebase
uses: w9jds/firebase-action@master
with:

View File

@ -2,7 +2,7 @@
"hosting": [
{
"site": "rxresume",
"public": "public",
"public": "public/",
"ignore": ["firebase.json", "**/.*", "**/node_modules/**"],
"rewrites": [
{