Skip to content

Commit

Permalink
Gen API docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
supnate committed Mar 16, 2024
1 parent 6f4d6c3 commit 03fc0b2
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/publish-examples.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,14 @@ jobs:
- name: Install dependencies
run: pnpm i

# Build examples
# Build API docs and examples
- name: Build examples
run: |
mkdir gh-pages
cd packages/nice-form-react
pnpm build
pnpm gendoc
cp -r ./docs ../../gh-pages/docs
cd ../../
cd packages/examples-antd
pnpm build
Expand All @@ -53,10 +56,8 @@ jobs:
cd ../../
cp ./docs/index.html ./gh-pages/index.html
- name: Deploy to gh-pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./gh-pages

publish_dir: ./gh-pages

0 comments on commit 03fc0b2

Please sign in to comment.