Skip to content

Merge pull request #14 from mahabubx7/13-documentation #14

Merge pull request #14 from mahabubx7/13-documentation

Merge pull request #14 from mahabubx7/13-documentation #14

Workflow file for this run

name: Build and Deploy to GitHub Pages
on:
push:
branches:
- main
paths:
- "docs/**"
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: "20"
- name: Install dependencies
run: cd docs && npm install
- name: Build project
run: npm run docs:build
# working-directory: ./docs
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GH_PA_TOKEN }}
publish_dir: ./docs/.vitepress/dist