Skip to content

github link

github link #24

Workflow file for this run

name: Deploy Production
on:
push:
branches:
- "main"
jobs:
build:
runs-on: ubuntu-20.04
name: Build and Deploy to GitHub Pages
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup pnpm
uses: pnpm/action-setup@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: "pnpm"
- name: Get pnpm store directory
id: pnpm-cache
run: |
echo "pnpm_cache_dir=$(pnpm store path)" >> $GITHUB_ENV
- name: Install dependencies
run: pnpm install
- name: Build the project
run: pnpm build --preset github_pages
- name: Generate the static site
run: pnpm generate
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GH_TOKEN }}
publish_dir: .output/public