Skip to content

Workflow file for this run

name: Build and Deploy to GitHub Pages
on:
push:
# branches:
# - main # You can change this to the branch you want
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 22
cache: 'npm'
- name: Build project
run:
npm run predeploy
npm ci
- name: Upload build artifacts
uses: actions/upload-pages-artifact@v1 # This stores the build output
with:
path: $GITHUB_WORKSPACE/build
deploy:
needs: build
runs-on: ubuntu-latest
permissions:
pages: write # Allows deployment to GitHub Pages
id-token: write # Needed for GitHub Pages deployment
steps:
- name: Deploy to GitHub Pages
uses: actions/deploy-pages@v1 # This deploys the stored artifacts