Skip to content

tweak

tweak #281

name: Build and deploy
on:
workflow_dispatch:
push:
branches:
- main
env:
BASE_URL: /recipes/
DOCS_PATH: /
jobs:
build:
name: Build docs
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
name: Checkout repository
with:
fetch-depth: 0
- name: Enable Corepack
run: corepack enable
- uses: actions/setup-node@v4
name: Setup Node.js
with:
node-version: 24
cache: yarn
- name: Install dependencies
uses: borales/actions-yarn@v5
with:
cmd: install
- name: Typecheck
uses: borales/actions-yarn@v5
with:
cmd: typecheck
- name: Build website
uses: borales/actions-yarn@v5
with:
cmd: build
- name: Upload build artifact
uses: actions/upload-pages-artifact@v3
with:
path: build
deploy:
name: Deploy to GitHub Pages
needs: build
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Deploy
id: deployment
uses: actions/deploy-pages@v4