Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 11 additions & 4 deletions .github/workflows/buildAndDeploy.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Build and Deploy

on: workflow_dispatch

jobs:
build-and-deploy:
runs-on: ubuntu-latest
Expand All @@ -9,18 +10,24 @@ jobs:
node-version: [18.x]
steps:
- name: Checkout 🛎️
uses: actions/checkout@v2.3.1
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@4.1.3
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages # The branch the action should deploy to.
folder: build # The folder the action should deploy.
branch: gh-pages
folder: build