Skip to content

Build and Deploy

Build and Deploy #4

Workflow file for this run

name: Build and Deploy
on:
workflow_dispatch:
jobs:
build:
name: Build and Deploy
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
with:
fetch-depth: '0'
persist-credentials: false
submodules: 'recursive'
- name: Setup Node
uses: actions/setup-node@v2-beta
with:
node-version: '22'
- name: Build
run: npm install && npm run build
- name: Upload static files as artifact
id: deployment
uses: actions/upload-pages-artifact@v3 # or specific "vX.X.X" version tag for this action
with:
path: docs
deploy:
environment:
name: Deploy
permissions:
contents: read
pages: write
id-token: write
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4