All checks were successful
Deploy Quartz site to GitHub Pages / build (push) Successful in 1m12s
45 lines
790 B
YAML
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/
|
|
|