From 212305f79328a60c9694ce2bf7c9b0177af640ab Mon Sep 17 00:00:00 2001 From: Minchul Lee Date: Mon, 1 Jul 2024 00:59:18 +0900 Subject: [PATCH] build: Add documentation build step to release workflow --- .github/workflows/release.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9535112d..8783b9af 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -344,3 +344,14 @@ jobs: with: token: ${{ secrets.NPM_TOKEN }} package: bindings/wasm/package + - name: Build documenation + run: | + cd bindings/wasm/package + npm run doc + - name: Publish documenation + uses: peaceiris/actions-gh-pages@v3 + if: github.ref == 'refs/heads/main' + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: bindings/wasm/package/doc + destination_dir: ./kiwi-nlp