|
1 | | -name: Publish distribution packages ? to PyPI and TestPyPI |
| 1 | +name: Publish distribution packages to PyPI and TestPyPI |
2 | 2 |
|
3 | 3 | on: push |
4 | 4 |
|
5 | 5 | jobs: |
6 | 6 | build: |
7 | 7 | # we build on each push, even though we only publish for tagged pushes |
8 | | - name: Build distribution packages ? |
| 8 | + name: Build distribution packages |
9 | 9 | runs-on: ubuntu-latest |
10 | 10 |
|
11 | 11 | steps: |
12 | | - - uses: actions/checkout@v4 |
| 12 | + - uses: actions/checkout@v5 |
13 | 13 | - name: Set up Python |
14 | | - uses: actions/setup-python@v5 |
| 14 | + uses: actions/setup-python@v6 |
15 | 15 | with: |
16 | | - python-version: "3.x" |
| 16 | + python-version: "3.12" |
17 | 17 | - name: Install pypa/build |
18 | 18 | run: python3 -m pip install build --user |
19 | 19 | - name: Build a binary wheel and a source tarball |
20 | 20 | run: python3 -m build |
21 | 21 | - name: Store the distribution packages |
22 | | - uses: actions/upload-artifact@v3 |
| 22 | + uses: actions/upload-artifact@v4 |
23 | 23 | with: |
24 | 24 | name: python-distribution-packages |
25 | 25 | path: dist/ |
26 | 26 |
|
27 | 27 | publish-to-testpypi: |
28 | | - name: Publish distribution packages ? to TestPyPI |
| 28 | + name: Publish distribution packages to TestPyPI |
29 | 29 | # only publish to TestPyPI on tag pushes |
30 | 30 | if: startsWith(github.ref, 'refs/tags/') |
31 | 31 | needs: |
|
41 | 41 |
|
42 | 42 | steps: |
43 | 43 | - name: Download all the dists |
44 | | - uses: actions/download-artifact@v4.1.7 |
| 44 | + uses: actions/download-artifact@v5 |
45 | 45 | with: |
46 | 46 | name: python-distribution-packages |
47 | 47 | path: dist/ |
|
65 | 65 |
|
66 | 66 | steps: |
67 | 67 | - name: Download all the dists |
68 | | - uses: actions/download-artifact@v4.1.7 |
| 68 | + uses: actions/download-artifact@v5 |
69 | 69 | with: |
70 | 70 | name: python-distribution-packages |
71 | 71 | path: dist/ |
|
0 commit comments