Publish new version to PyPI & Docker Hub #3
Workflow file for this run
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 Package | |
on: | |
push: | |
# Pattern matched against refs/tags | |
tags: | |
- '*' | |
jobs: | |
pypi-publish: | |
name: Publish release to PyPI | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.9" | |
- name: Install build dependencies | |
run: | | |
PIP_DISABLE_PIP_VERSION_CHECK=1 python3 -m pip install --upgrade pip | |
pip3 install build | |
- name: Build package | |
run: | | |
python3 -m build --sdist --wheel | |
- name: Publish package distribution to PyPI | |
uses: pypa/gh-action-pypi-publish@release/v1 | |
with: | |
password: ${{ secrets.PYPI_ID_TOKEN }} |