Skip to content

Workflow file for this run

# .github/workflows/publish.yml
name: Publish Python 🐍 distributions 📦 to PyPI and TestPyPI
on: push
jobs:
pypi-publish:
name: Upload release to PyPI
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/sharded-queue
permissions:
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
steps:
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1