Skip to content

Merge pull request #79 from benWu26/benWu26-patch-3 #19

Merge pull request #79 from benWu26/benWu26-patch-3

Merge pull request #79 from benWu26/benWu26-patch-3 #19

Workflow file for this run

name: 🚀 Deploy to GitHub Pages
on:
push:
branches:
- main
permissions:
contents: read # needed for checkout
pages: write # needed for Pages deployment
id-token: write # needed for deploy-pages
jobs:
build:
runs-on: ubuntu-latest
steps:
# 1) Check out the repo
- name: Checkout Repo
uses: actions/checkout@v3
# 2) Set up Node.js 22.x & enable Corepack
- name: Setup Node.js & Corepack
uses: actions/setup-node@v3
with:
node-version: '22.x'
- name: Enable Corepack
run: corepack enable
# 3) Use Yarn Berry, install deps & build your site
- name: Install & Build
working-directory: website
run: |
yarn set version berry
yarn install
yarn run build
# this outputs static files into website/dist
# 4) Upload the build for GitHub Pages
- name: Upload Pages artifact
uses: actions/upload-pages-artifact@v3
with:
path: website/dist
deploy:
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
steps:
# 5) Deploy to GitHub Pages
- name: Deploy to Pages
uses: actions/deploy-pages@v4