Skip to content

Add the base path to header (#42) #7

Add the base path to header (#42)

Add the base path to header (#42) #7

Workflow file for this run

name: GitHub Page Publish
on:
push:
branches: main
paths:
- "frontend/**"
jobs:
build-and-deploy:
runs-on: ubuntu-latest
env:
working-directory: ./frontend
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3
- name: Setup Node 🔧
uses: actions/setup-node@v2
with:
node-version: '18'
cache: 'npm'
cache-dependency-path: frontend/package-lock.json
- name: Install and Build 🔧
working-directory: ${{ env.working-directory }}
env:
NODE_OPTIONS: "--max_old_space_size=4096"
run: |
npm install -f
npm run build
- name: Deploy 🚀
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: frontend/dist