Skip to content

Create 2024-09-22-blogging-is-listening.md #58

Create 2024-09-22-blogging-is-listening.md

Create 2024-09-22-blogging-is-listening.md #58

name: Process Markdown and Deploy
on:
push:
branches:
- main
paths:
- "posts/**.md"
- "scripts/**"
- "package.json"
- "package-lock.json"
jobs:
build_and_deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: "18"
- name: Install Dependencies
run: npm install
- name: Process Markdown Files
run: node scripts/cache-site-data.js
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./.cache