Skip to content

Commit

Permalink
Merge pull request #65 from poteat/231125-gh-pages-action
Browse files Browse the repository at this point in the history
Set up workflow for auto-deploying TypeDoc documentation to GitHub Pages
  • Loading branch information
MajorLift authored Nov 26, 2023
2 parents 99b9725 + 3be9edd commit e5963b0
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/publish-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Publish docs to GitHub Pages

on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
publish-docs-to-gh-pages:
name: Publish docs to GitHub Pages
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout the repository
uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
- name: Install npm dependencies
run: npm install
- name: Run build script
run: npm run build:docs
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./typedoc
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v18

0 comments on commit e5963b0

Please sign in to comment.