Skip to content

feat: Obsidian callout support, migration blog post, deploy workflow fix #77

feat: Obsidian callout support, migration blog post, deploy workflow fix

feat: Obsidian callout support, migration blog post, deploy workflow fix #77

Workflow file for this run

name: Deploy to GitHub Pages
on:
push:
branches: [master]
jobs:
build-and-deploy:
runs-on: ubuntu-latest
name: Build and Deploy
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "22.x"
cache: npm
- name: Install dependencies
run: npm ci
- name: Build Astro site
run: npm run build
- name: Remove /public prefix from image paths
run: find dist -type f \( -name '*.html' -o -name '*.css' -o -name '*.js' \) -exec sed -i 's|/public/images|/images|g' {} \;
- name: Deploy to GitHub Pages
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages
folder: dist
clean: true
single-commit: true