Skip to content

Commit e5e271d

Browse files
committed
chore: gh-pages action
1 parent 5e097bb commit e5e271d

File tree

4 files changed

+27
-3
lines changed

4 files changed

+27
-3
lines changed

.github/workflows/gh-pages.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: github pages
2+
on:
3+
push:
4+
branches:
5+
- main
6+
jobs:
7+
deploy:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v3
11+
- name: Install pnpm
12+
uses: pnpm/action-setup@v2
13+
- name: Set node version to 18
14+
uses: actions/setup-node@v3
15+
with:
16+
node-version: 18
17+
cache: 'pnpm'
18+
- run: pnpm install --frozen-lockfile
19+
- run: npm run typedoc:build
20+
- name: Deploy
21+
uses: peaceiris/actions-gh-pages@v3
22+
with:
23+
github_token: ${{ secrets.GITHUB_TOKEN }}
24+
publish_dir: ./docs-dist

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,5 +104,5 @@ dist
104104
.tern-port
105105

106106
.idea
107-
docs-html
107+
docs-dist
108108
temp

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"prettier-check": "prettier ./ --check",
1919
"check-all": "run-p ts-check lint-check prettier-check",
2020
"typedoc:build": "typedoc",
21-
"typedoc:deploy": "gh-pages -d docs-html",
21+
"typedoc:deploy": "gh-pages -d docs-dist",
2222
"build": "esno scripts/build.ts -t",
2323
"release": "esno scripts/release.ts",
2424
"yalc:publish": "yalc publish",

typedoc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"customCss": "./typedoc.theme.css",
88
"sort": ["static-first", "kind", "enum-value-ascending"],
99
"categoryOrder": ["file"],
10-
"out": "./docs-html",
10+
"out": "./docs-dist",
1111
"categorizeByGroup": true,
1212
"searchCategoryBoosts": {
1313
"Component": 2,

0 commit comments

Comments
 (0)