Skip to content

Commit

Permalink
fix actions
Browse files Browse the repository at this point in the history
  • Loading branch information
YieldRay committed Nov 26, 2023
1 parent ad4f314 commit 109e788
Showing 1 changed file with 16 additions and 11 deletions.
27 changes: 16 additions & 11 deletions .github/workflows/typedoc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,27 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Use Node.js
uses: actions/setup-node@v2
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: "18"
cache: "npm"

- name: Install
run: npm install --legacy-peer-deps
- name: Build doc
run: |
npm install --legacy-peer-deps
npx typedoc src/lanzou.ts src/types.ts --out ./doc
- name: Typedoc
run: npx typedoc src/lanzou.ts src/types.ts --out ./doc
- name: Setup Pages
uses: actions/configure-pages@v3

- name: Deploy
uses: peaceiris/actions-gh-pages@v3
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
publish_dir: ./doc
path: "./doc"

- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2

0 comments on commit 109e788

Please sign in to comment.