Skip to content

Build and Deploy

Build and Deploy #58

name: Build and Deploy
on: workflow_dispatch
jobs:
build-and-deploy:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x]
steps:
- name: Checkout 🛎️
uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Clear npm cache
run: npm cache clean --force
- name: Install and Build 🔧
run: |
export NODE_OPTIONS=--openssl-legacy-provider
npm ci
npm run build
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages
folder: build