mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2025-11-14 08:42:08 +10:00
update CI script
This commit is contained in:
26
.github/workflows/main.yml
vendored
26
.github/workflows/main.yml
vendored
@ -1,36 +1,22 @@
|
|||||||
name: Build and Deploy
|
name: Build & Deploy
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ master ]
|
branches: [master]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
name: Build
|
name: Build & Deploy
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout GitHub Repository
|
- name: Checkout GitHub Repository
|
||||||
uses: actions/checkout@v2.0.0
|
uses: actions/checkout@v2.0.0
|
||||||
- name: Install Project Dependencies
|
- name: Install Project Dependencies
|
||||||
run: npm install
|
run: npm install
|
||||||
- name: Build in Production
|
- name: Build App
|
||||||
run: npm run build
|
run: npm run build
|
||||||
- name: Archive Production Artifact
|
- name: Build Documentation
|
||||||
uses: actions/upload-artifact@v1.0.0
|
run: npm run docs:build
|
||||||
with:
|
|
||||||
name: build
|
|
||||||
path: build
|
|
||||||
deploy:
|
|
||||||
name: Deploy
|
|
||||||
needs: build
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Checkout GitHub Repository
|
|
||||||
uses: actions/checkout@v2.0.0
|
|
||||||
- name: Download Artifact
|
|
||||||
uses: actions/download-artifact@v1.0.0
|
|
||||||
with:
|
|
||||||
name: build
|
|
||||||
- name: Deploy to Firebase Hosting
|
- name: Deploy to Firebase Hosting
|
||||||
uses: w9jds/firebase-action@v1.3.0
|
uses: w9jds/firebase-action@v1.3.0
|
||||||
with:
|
with:
|
||||||
|
|||||||
Reference in New Issue
Block a user