Skip to content

chore: fix deploy

chore: fix deploy #5

Workflow file for this run

name: Deploy to GitHub Pages
on:
push:
branches: [main]
paths:
- 'docs/**'
- '.github/workflows/deploy.yml'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'yarn'
cache-dependency-path: docs/yarn.lock
- name: Install deps
working-directory: docs
run: yarn install --frozen-lockfile
- name: Build site
working-directory: docs
run: yarn build
- name: Upload pages artifact
uses: actions/upload-pages-artifact@v3
with:
path: docs/build
deploy:
runs-on: ubuntu-latest
needs: build
permissions:
pages: write
id-token: write
steps:
- name: Deploy
id: deployment
uses: actions/deploy-pages@v4