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
18 changes: 9 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,31 +1,31 @@
name: Publish distribution packages ? to PyPI and TestPyPI
name: Publish distribution packages to PyPI and TestPyPI

on: push

jobs:
build:
# we build on each push, even though we only publish for tagged pushes
name: Build distribution packages ?
name: Build distribution packages
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v5
- name: Set up Python
uses: actions/setup-python@v5
uses: actions/setup-python@v6
with:
python-version: "3.x"
python-version: "3.12"
- name: Install pypa/build
run: python3 -m pip install build --user
- name: Build a binary wheel and a source tarball
run: python3 -m build
- name: Store the distribution packages
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: python-distribution-packages
path: dist/

publish-to-testpypi:
name: Publish distribution packages ? to TestPyPI
name: Publish distribution packages to TestPyPI
# only publish to TestPyPI on tag pushes
if: startsWith(github.ref, 'refs/tags/')
needs:
Expand All @@ -41,7 +41,7 @@ jobs:

steps:
- name: Download all the dists
uses: actions/download-artifact@v4.1.7
uses: actions/download-artifact@v5
with:
name: python-distribution-packages
path: dist/
Expand All @@ -65,7 +65,7 @@ jobs:

steps:
- name: Download all the dists
uses: actions/download-artifact@v4.1.7
uses: actions/download-artifact@v5
with:
name: python-distribution-packages
path: dist/
Expand Down
Loading