Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/bnf-pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ jobs:
- uses: actions/upload-artifact@v6
with:
name: dist
path: bnf/dist/*.whl
path: bnf/dist/

upload:
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/egg-pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ jobs:
- uses: actions/upload-artifact@v6
with:
name: dist
path: egg/dist/*.whl
path: egg/dist/

upload:
runs-on: ubuntu-latest
Expand Down
32 changes: 31 additions & 1 deletion .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,34 @@ jobs:
name: wheels-${{ matrix.os }}
path: wheelhouse/*.whl

sdist:
runs-on: ubuntu-latest
needs: pytest

if: "github.event_name == 'push' && startsWith(github.ref, 'refs/tags')"

steps:
- uses: actions/checkout@v6

- name: recovery tag information
run: git fetch --tags --force

- uses: astral-sh/setup-uv@v7
with:
python-version: ${{ env.PYTHON_LATEST_VERSION }}
enable-cache: true

- name: build sdist
run: uv build --sdist

- uses: actions/upload-artifact@v6
with:
name: sdist
path: dist/*.tar.gz

upload:
runs-on: ubuntu-latest
needs: wheels
needs: [wheels, sdist]

environment:
name: pypi
Expand All @@ -82,6 +107,11 @@ jobs:
path: dist
merge-multiple: true

- uses: actions/download-artifact@v7
with:
name: sdist
path: dist

- uses: pypa/gh-action-pypi-publish@release/v1
with:
packages-dir: dist