Skip to content

Publish new version to PyPI & Docker Hub #3

Publish new version to PyPI & Docker Hub

Publish new version to PyPI & Docker Hub #3

Workflow file for this run

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 }}