Skip to content

Commit 0e9d6e3

Browse files
authored
👷 update autodoc
1 parent 25bb691 commit 0e9d6e3

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

.github/actions/build-api-doc/action.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ runs:
55
using: "composite"
66
steps:
77
- run: |
8-
poetry run nb-autodoc nb_cli
9-
cp -r ./build/nb_cli/* ./website/docs/api/
8+
pdm run autodoc
109
yarn prettier
1110
shell: bash

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
- name: Build and Publish Package
2929
run: |
3030
pdm build
31-
pdm publish -u ${{ secrets.PYPI_USERNAME }} -p ${{ secrets.PYPI_PASSWORD }}
31+
pdm publish -u ${{ secrets.PYPI_USERNAME }} -P ${{ secrets.PYPI_PASSWORD }}
3232
gh release upload --clobber ${{ steps.version.outputs.TAG_NAME }} dist/*.tar.gz dist/*.whl
3333
env:
3434
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ extra_standard_library = ["typing_extensions"]
7979
extend_skip = ["nb_cli/template/"]
8080

8181
[tool.pdm.scripts]
82+
autodoc = { shell = "nb-autodoc nb_cli && cp -r ./build/nb_cli/* ./website/docs/api/"}
8283
extract = "pybabel extract -o messages.pot --project nb-cli --version 1.0.0 nb_cli/"
8384
_init = "pybabel init -D nb-cli -i messages.pot -d nb_cli/locale/ -l {args}"
8485
init = { composite = ["extract", "_init {args}"] }

0 commit comments

Comments
 (0)