Skip to content

Commit

Permalink
CI: release as solara-ipyantd
Browse files Browse the repository at this point in the history
  • Loading branch information
mariobuikhuizen committed Jun 5, 2024
1 parent 433b644 commit 481bd54
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 17 deletions.
22 changes: 7 additions & 15 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,12 @@ jobs:
path: test-results

release:
if: startsWith(github.event.ref, 'refs/tags/v')
# if: startsWith(github.event.ref, 'refs/tags/v')
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 481bd54

Please sign in to comment.