Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,10 @@ jobs:
token: ${{ secrets.NPM_TOKEN }}

- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@v1.4.2
uses: pypa/gh-action-pypi-publish@v1.12.3
with:
password: ${{ secrets.PYPI_API_TOKEN }}
packages-dir: py-dist/

- name: Commit updated package-lock.json and docs requirements
uses: stefanzweifel/git-auto-commit-action@v4
Expand Down Expand Up @@ -114,9 +115,10 @@ jobs:
token: ${{ secrets.NPM_TOKEN }}

- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@v1.4.2
uses: pypa/gh-action-pypi-publish@v1.12.3
with:
password: ${{ secrets.PYPI_API_TOKEN }}
packages-dir: py-dist/

- name: Commit updated package-lock.json
uses: stefanzweifel/git-auto-commit-action@v4
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ dash_bootstrap_components/_components/
__pycache__
*.pyc
dist
py-dist
*.egg-info

# release artifacts
Expand Down
6 changes: 3 additions & 3 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ test-js:

# Delete generated files and recreate empty directories
clean:
rm -rf dist lib dash_bootstrap_components/_components
mkdir -p dist lib dash_bootstrap_components/_components
rm -rf py-dist dist lib dash_bootstrap_components/_components
mkdir -p py-dist dist lib dash_bootstrap_components/_components

# Build dash-bootstrap-components
build: clean && _build-py
Expand Down Expand Up @@ -79,7 +79,7 @@ deploy-docs: _copy-examples
_build-py: && _move-generated-files
uv run dash-generate-components ./src/components dash_bootstrap_components
cp dash_bootstrap_components/_components/dash_bootstrap_components.min.js dist
uv build --sdist --wheel
uv build --sdist --wheel -o py-dist

_copy-examples:
cp examples/gallery/iris-kmeans/app.py docs/examples/vendor/iris.py
Expand Down
Loading