Skip to content

Commit

Permalink
Configure deployment of docs on publish
Browse files Browse the repository at this point in the history
  • Loading branch information
9inpachi committed May 28, 2024
1 parent e0e9a88 commit 131aec5
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/deploy-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Deploy Docs

on:
release:
types: [published]
workflow_dispatch:

jobs:
deploy-docs:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 20.x

- name: Install pnpm
uses: pnpm/action-setup@v3
with:
version: latest
run_install: true

- name: Build docs
run: pnpm docs:build

- name: Deploy
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/build

0 comments on commit 131aec5

Please sign in to comment.