Skip to content

Commit

Permalink
chore: add gh-pages cd
Browse files Browse the repository at this point in the history
  • Loading branch information
mengxinssfd committed Sep 5, 2023
1 parent a96171a commit 17bc252
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 1 deletion.
24 changes: 24 additions & 0 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: github pages
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install pnpm
uses: pnpm/action-setup@v2
- name: Set node version to 18
uses: actions/setup-node@v3
with:
node-version: 18
cache: 'pnpm'
- run: pnpm install --frozen-lockfile
- run: npm run example:build
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./example/docs
2 changes: 1 addition & 1 deletion example/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "typedoc-theme-example",
"version": "1.1.0",
"version": "1.1.3",
"scripts": {
"build:docs": "typedoc"
},
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"repository": "https://github.com/mengxinssfd/typedoc-theme.git",
"author": "DYH <xinzon32177@163.com>",
"license": "MIT",
"packageManager": "pnpm@7.1.0",
"keywords": [
"typedoc-theme"
],
Expand Down

0 comments on commit 17bc252

Please sign in to comment.