Skip to content

Commit 469b66e

Browse files
Use twine for release publishing
1 parent 44b1456 commit 469b66e

1 file changed

Lines changed: 6 additions & 7 deletions

File tree

.github/workflows/deepgym-ci.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,11 @@ jobs:
6969

7070
- name: Build package
7171
run: |
72-
pip install hatch
73-
hatch build
72+
python -m pip install build twine
73+
python -m build
7474
7575
- name: Publish to PyPI
76-
uses: pypa/gh-action-pypi-publish@release/v1
77-
with:
78-
packages-dir: deepgym/dist/
79-
user: __token__
80-
password: ${{ secrets.PYPI_API_TOKEN }}
76+
env:
77+
TWINE_USERNAME: __token__
78+
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
79+
run: python -m twine upload --non-interactive --skip-existing dist/*

0 commit comments

Comments
 (0)