Skip to content

fix actions

fix actions #24

Workflow file for this run

name: Publish Typedoc to Github Pages
on:
push:
branches:
- main
- master
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: "18"
cache: "npm"
- name: Build doc
run: |
npm install --legacy-peer-deps
npx typedoc src/lanzou.ts src/types.ts --out ./doc
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
path: "./doc"
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2