Skip to content

Commit

Permalink
REL: use uv-build for publication
Browse files Browse the repository at this point in the history
  • Loading branch information
neutrinoceros committed Jan 3, 2025
1 parent e63c6a8 commit 0f8660e
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ name: CD
on:
push:
tags: v*
pull_request:
paths:
- .github/workflows/cd.yml
- pyproject.toml

jobs:
pypi-publish:
Expand All @@ -16,14 +20,9 @@ jobs:
- name: Checkout Source
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Setup Python
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
with:
python-version: 3.x
- name: Install build dependencies
run: python -m pip install build wheel
uses: astral-sh/setup-uv@887a942a15af3a7626099df99e897a18d9e5ab3a # v5.1.0
- name: Build distributions
shell: bash -l {0}
run: python -m build
run: uv build
- name: Publish package distributions to PyPI
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
uses: pypa/gh-action-pypi-publish@67339c736fd9354cd4f8cb0b744f2b82a74b5c70 # v1.12.3

0 comments on commit 0f8660e

Please sign in to comment.