Skip to content

chore: update PyPI publishing workflow to use token authentication #80

chore: update PyPI publishing workflow to use token authentication

chore: update PyPI publishing workflow to use token authentication #80

Workflow file for this run

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/