Skip to content

Commit

Permalink
Issue-430 - Publish typedocs
Browse files Browse the repository at this point in the history
  • Loading branch information
huntharo committed May 22, 2024
1 parent 089514e commit 38e8823
Show file tree
Hide file tree
Showing 3 changed files with 131 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Publish Docs

on:
release:
types: [published]

workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- uses: ./.github/actions/configure-nodejs

- name: Build Docs
run: npm run build:docs

# On Settings -> Pages, select:
# - Source -> Deploy from Branch
# - Branch: gh-pages, Folder: / (root)
# - Enforce HTTPS
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs
100 changes: 100 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
},
"scripts": {
"build": "tsc",
"build:docs": "typedoc ./index.ts",
"prepare": "husky",
"prepublishOnly": "rm -rf dist && npm run test",
"test": "eslint lib/* ./cli.ts && tsc && jest ./tests/sitemap*",
Expand Down Expand Up @@ -75,6 +76,7 @@
"stats-lite": "^2.2.0",
"stream-json": "^1.7.1",
"through2-map": "^4.0.0",
"typedoc": "0.25.13",
"typescript": "^5.4.5"
},
"engines": {
Expand Down

0 comments on commit 38e8823

Please sign in to comment.