Skip to content

Commit

Permalink
[REF] Revert to using PyPI API token (#79)
Browse files Browse the repository at this point in the history
* [DOC] Update changelog, prepare `v0.0.3` release

* [FIX] Use PyPI token for upload

* [REF] Replace `pkg_resources` with `distutils` and `importlib`

* [REF] Enable verbose output of `twine`

* [REF] Use trusted publisher from PyPI

* [REF] Use `build` instead of `setup.py`

* [REF] Revert to using PYPI API token
  • Loading branch information
f-dangel authored Jun 24, 2024
1 parent bf77b50 commit 441cb45
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/python-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,11 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build twine
pip install setuptools wheel twine
- name: Build and publish
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
run: |
python -m build
python setup.py sdist bdist_wheel
twine upload --verbose dist/*

0 comments on commit 441cb45

Please sign in to comment.