chore: update PyPI publishing workflow to use token authentication #80
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish Python π distributions π¦ to PyPI | |
on: | |
push: | |
# schedule: | |
# - cron: '0 4 */1 * *' | |
jobs: | |
build: | |
name: Publish Python π distributions π¦ to PyPI | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 1 | |
- name: Set up Python 3.11 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.11' | |
- name: Install twine | |
run: >- | |
python -m | |
pip install | |
twine | |
--user | |
- name: Build a binary wheel and a source tarball | |
run: >- | |
python setup.py sdist | |
- name: Publish distribution π¦ to PyPI | |
uses: pypa/gh-action-pypi-publish@release/v1 | |
with: | |
user: __token__ | |
password: ${{ secrets.pypi_password }} | |
# repository_url: https://pypi.org/legacy/ | |