Skip to content

Switched from AI icons to icons composed from fluent-icon and twemoji… #18

Switched from AI icons to icons composed from fluent-icon and twemoji…

Switched from AI icons to icons composed from fluent-icon and twemoji… #18

Workflow file for this run

name: Build and Deploy Error Pages
on:
push:
branches:
- main # or the branch you want to trigger on
permissions:
contents: write
jobs:
build_and_deploy:
runs-on: ubuntu-latest
steps:
# Checkout the repository
- name: Checkout code
uses: actions/checkout@v3
# Set up Node.js environment
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '22' # or the version you are using
# Install dependencies
- name: Install dependencies
run: npm ci
# Build the error pages using Parcel
- name: Build error pages
env:
PARCEL_WORKER_BACKEND: process
run: npm run build
# Move pages into root of build folder
- name: Move pages
run: |
mv dist/4XX/*.html ./
mv dist/5XX/*.html ./
# Deploy to GitHub Pages
- name: Deploy to GitHub Pages
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages # The branch you want to deploy to
folder: dist # The folder to deploy from