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
7 changes: 7 additions & 0 deletions .github/workflows/build-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,10 @@ jobs:
- name: Build a wheel and a source tarball
run: |
python3 -m hatch build

- name: Upload built distributions
uses: actions/upload-artifact@v4
with:
name: package
path: dist/*

20 changes: 5 additions & 15 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,7 @@ name: Publish to PyPI
on:
workflow_dispatch:

jobs:
build-package:
uses: ./.github/workflows/build-package.yml

jobs:
check-tag:
runs-on: ubuntu-latest
steps:
Expand All @@ -16,17 +13,10 @@ jobs:
if: steps.check_ref.outputs.match != 'true'
run: exit 1

upload-artifact:
needs: build-package
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Store the distribution packages
uses: actions/upload-artifact@v4
with:
name: package
path: |
dist/*
build-package:
needs:
- check-tag
uses: ./.github/workflows/build-package.yml

github-release:
name: Create GitHub release
Expand Down