Skip to content

Commit

Permalink
Merge pull request #4 from widgetti/ci_release_as_solara-ipyantd
Browse files Browse the repository at this point in the history
CI: release as solara-ipyantd
  • Loading branch information
mariobuikhuizen authored Jun 27, 2024
2 parents 433b644 + 1503888 commit a575354
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 16 deletions.
20 changes: 6 additions & 14 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,8 @@ jobs:
needs: [ui-test]
# needs: [test, ui-test]
runs-on: ubuntu-20.04
permissions:
id-token: write # this permission is mandatory for trusted publishing
steps:
- uses: actions/download-artifact@v3
with:
Expand All @@ -129,17 +131,7 @@ jobs:
python -m pip install --upgrade pip
pip install twine wheel jupyter-packaging jupyterlab
- name: Publish the Python package
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
run: twine upload --skip-existing dist/*.whl dist/*.tar.gz

# - name: Publish the NPM package
# run: |
# echo $PRE_RELEASE
# if [[ $PRE_RELEASE == "true" ]]; then export TAG="next"; else export TAG="latest"; fi
# npm publish --tag ${TAG} --access public *.tgz
# env:
# NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
# PRE_RELEASE: ${{ github.event.release.prerelease }}
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
packages-dir: dist
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ The following components are wrapped (more will be coming):
# Installation

```
pip install ipyantd
pip install solara-ipyantd
```

# Dev install
Expand Down
5 changes: 4 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,11 @@ requires = [
]
build-backend = "hatchling.build"

[tool.hatch.build.targets.wheel]
packages = ["ipyantd"]

[project]
name = "ipyantd"
name = "solara-ipyantd"
dynamic = ["version"]
description = "React for ipywidgets that just works"
readme = "README.md"
Expand Down

0 comments on commit a575354

Please sign in to comment.