1
0
Files
medical-notes/.github/workflows/deploy.yml
jdahlin 241293c73c
All checks were successful
Deploy Quartz site to GitHub Pages / build (push) Successful in 1m12s
Update .github/workflows/deploy.yml
2025-11-21 23:21:37 +01:00

45 lines
790 B
YAML

name: Deploy Quartz site to GitHub Pages
on:
push:
branches:
- main
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: false
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: Build Quartz site
run: npx quartz build
- name: Git LFS checkout
run: |
git lfs fetch
git lfs checkout
- name: Publish
run: rsync -av public/ ~/notes/