Skip to content
Merged
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
23 changes: 20 additions & 3 deletions .github/workflows/python-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,28 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine build
pip install setuptools wheel build
- name: Build the package
run: |
python -m build --sdist --wheel && python -m twine upload --repository pypi dist/*
python -m build --sdist --wheel
- name: Upload package
uses: actions/upload-artifact@v4
with:
name: dist
name: release-dists
path: dist/

pypi-publish:
runs-on: ubuntu-latest
needs:
- build-linus
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@3e4f5a6b7c8d9e0f1a2b3c4d5e6f7a8b9c0d1e2f