Skip to content

add working directory to build job (#266) #3

add working directory to build job (#266)

add working directory to build job (#266) #3

name: Build and Deploy Demo Site
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/[email protected]
- name: Install and Build 🔧
working-directory: ./docs
run: |
npm install
npm run build
deploy:
if: |
!cancelled() && !failure()
needs: build
runs-on: ubuntu-latest
steps:
- name: Deploy 🚀
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: docs/public