Skip to content

Update pypa/gh-action-pypi-publish action to v1.12.1 #189

Update pypa/gh-action-pypi-publish action to v1.12.1

Update pypa/gh-action-pypi-publish action to v1.12.1 #189

Workflow file for this run

name: PyPI release
on: [push]
jobs:
pypi_release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.x
uses: actions/setup-python@v5
with:
python-version: 3.x
- name: Install build dependencies
run: |
python -m pip install --upgrade setuptools wheel twine build
- name: Build
run: |
python -m build
twine check dist/*
- name: Publish package
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
uses: pypa/[email protected]
with:
user: __token__
password: ${{ secrets.pypi_password }}