Skip to content

Publish on PyPI

Publish on PyPI #16

Workflow file for this run

name: Publish on PyPI
on:
workflow_dispatch:
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout ⬇️
uses: actions/checkout@v4
with:
persist-credentials: false
- name: Setup python 🐍
uses: actions/setup-python@v5
with:
python-version: 3.9
- name: Install dependencies ☕️
run: |
pip install -U pip setuptools
pip install -U twine build
- name: Bundle 📦
run: python -m build
- name: Publish package 🐍
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_TOKEN }}
skip-existing: true