Skip to content

Merge pull request #1 from autumn-library/dependabot/github_actions/p… #5

Merge pull request #1 from autumn-library/dependabot/github_actions/p…

Merge pull request #1 from autumn-library/dependabot/github_actions/p… #5

Workflow file for this run

name: Deploy VitePress to GitHub Pages
on:
push:
branches:
- master
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: '23' # Use the Node.js version compatible with VitePress
- name: Install dependencies
run: npm install
- name: Build the site
run: npm run docs:build
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./.vitepress/dist