Skip to content

Bump codecov/codecov-action from 5.1.1 to 5.1.2 #992

Bump codecov/codecov-action from 5.1.1 to 5.1.2

Bump codecov/codecov-action from 5.1.1 to 5.1.2 #992

Workflow file for this run

name: Publish
on: push
jobs:
build:
name: Build the package
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v4
- name: Build a binary wheel and a source tarball
run: uv build
- name: Upload dist directory
uses: actions/upload-artifact@v4
with:
name: dist
path: dist
publish:
name: Publish the package
needs: build
runs-on: ubuntu-latest
permissions:
id-token: write
steps:
- name: Print ref
run: echo ${{ github.ref }}
- name: Download all workflow run artifacts
uses: actions/download-artifact@v4
with:
name: dist
path: dist
- name: Publish package to TestPyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/
skip-existing: true
- name: Install uv if commit is tagged
if: startsWith(github.ref, 'refs/tags')
uses: astral-sh/setup-uv@v4
- name: Publish package to PyPI if commit is tagged
# Publish only tagged commits
if: startsWith(github.ref, 'refs/tags')
run: uv publish --verbose