Files
spotizerr-auth/.github/workflows/publish.yml
2025-08-15 19:51:54 -05:00

36 lines
702 B
YAML

name: Publish to PyPI
on:
push:
tags:
- "v*.*.*" # Triggers only on version tags
permissions:
contents: read
jobs:
build-and-publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.x"
- name: Install build tools
run: |
python -m pip install --upgrade pip
pip install build twine
- name: Build package
run: python -m build
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}