1
0
Files
medical-notes/.github/workflows/deploy.yml
jdahlin c8632540c3
Some checks failed
Deploy Quartz site to GitHub Pages / build (push) Failing after 1m9s
Update .github/workflows/deploy.yml
2025-11-21 23:10:52 +01:00

61 lines
1.2 KiB
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: Copy
run: rsync public ~/notes
# - name: Upload artifact
# uses: actions/upload-pages-artifact@v3
# with:
# path: ./public
# deploy:
# environment:
# name: github-pages
# url: ${{ steps.deployment.outputs.page_url }}
# runs-on: ubuntu-22.04
# needs: build
# steps:
# - name: Deploy to GitHub Pages
# id: deployment
# uses: actions/deploy-pages@v4