Skip to content

Commit

Permalink
ci(docs.yml): add it
Browse files Browse the repository at this point in the history
  • Loading branch information
supersonictw committed Jul 16, 2024
1 parent a0fb965 commit 4bc5a3e
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Docs workflow

on:
push:
branches:
- main

permissions:
contents: write

jobs:
build-and-deploy-docs:
runs-on: ubuntu-latest
steps:
- name: Specific Node.js version 🦄
uses: actions/setup-node@v3
with:
node-version: 20

- name: Checkout 🛎️
uses: actions/checkout@v4

- name: Install and Build 📎
run: |
npm install
npm run docs:build
- name: Deploy Docs 🚀
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages
folder: docs/.vitepress/dist

0 comments on commit 4bc5a3e

Please sign in to comment.