Skip to content

Commit 212305f

Browse files
authored
build: Add documentation build step to release workflow
1 parent b2709dc commit 212305f

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

Diff for: .github/workflows/release.yml

+11
Original file line numberDiff line numberDiff line change
@@ -344,3 +344,14 @@ jobs:
344344
with:
345345
token: ${{ secrets.NPM_TOKEN }}
346346
package: bindings/wasm/package
347+
- name: Build documenation
348+
run: |
349+
cd bindings/wasm/package
350+
npm run doc
351+
- name: Publish documenation
352+
uses: peaceiris/actions-gh-pages@v3
353+
if: github.ref == 'refs/heads/main'
354+
with:
355+
github_token: ${{ secrets.GITHUB_TOKEN }}
356+
publish_dir: bindings/wasm/package/doc
357+
destination_dir: ./kiwi-nlp

0 commit comments

Comments
 (0)