1
0
Files
medical-notes/.github/workflows/deploy.yml

36 lines
667 B
YAML

name: Deploy Quartz site to GitHub Pages
on:
push:
branches:
- main
workflow_dispatch:
jobs:
build:
runs-on: moln
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0 # Fetch all history for git info
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 22
- name: Install dependencies
run: npm ci
- name: Git LFS checkout
run: |
git lfs fetch
git lfs checkout
- name: Build Quartz site
run: npx quartz build
- name: Publish
run: rsync -av public/ ~/notes/