Skip to content

removes the package specifier for the pypi publish action #4

removes the package specifier for the pypi publish action

removes the package specifier for the pypi publish action #4

name: Example
on:
push:
branches:
- main
jobs:
test_and_build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v4
- name: Set up Python
run: uv python install
- name: Install the project
run: uv sync --all-extras --dev
- name: Run tests
run: uv run pytest tests
- name: Build
run: uv build
- name: Upload release distributions
uses: actions/upload-artifact@v4
with:
name: release-dists
path: dist/
publish:
runs-on: ubuntu-latest
needs:
- test_and_build
permissions:
id-token: write
steps:
- name: Retrieve release distributions
uses: actions/download-artifact@v4
with:
name: release-dists
path: dist/
- name: Publish release distributions to PyPI
uses: pypa/gh-action-pypi-publish