|
8 | 8 | runs-on: ubuntu-latest |
9 | 9 |
|
10 | 10 | steps: |
11 | | - - uses: actions/checkout@v6 |
12 | | - with: |
13 | | - persist-credentials: false |
14 | | - - name: Set up Python |
15 | | - uses: actions/setup-python@v6 |
16 | | - with: |
17 | | - python-version: "3.x" |
18 | | - - name: Install pypa/build |
19 | | - run: >- |
20 | | - python3 -m |
21 | | - pip install |
22 | | - build |
23 | | - --user |
24 | | - - name: Build a binary wheel and a source tarball |
25 | | - run: python3 -m build |
26 | | - - name: Store the distribution packages |
27 | | - uses: actions/upload-artifact@v5 |
28 | | - with: |
29 | | - name: python-package-distributions |
30 | | - path: dist/ |
| 11 | + - uses: actions/checkout@v6 |
| 12 | + with: |
| 13 | + persist-credentials: false |
| 14 | + - name: Set up Python |
| 15 | + uses: actions/setup-python@v6 |
| 16 | + with: |
| 17 | + python-version: "3.x" |
| 18 | + - name: Install pypa/build |
| 19 | + run: >- |
| 20 | + python3 -m |
| 21 | + pip install |
| 22 | + build |
| 23 | + --user |
| 24 | + - name: Build a binary wheel and a source tarball |
| 25 | + run: python3 -m build |
| 26 | + - name: Store the distribution packages |
| 27 | + uses: actions/upload-artifact@v5 |
| 28 | + with: |
| 29 | + name: python-package-distributions |
| 30 | + path: dist/ |
31 | 31 |
|
32 | 32 | publish-to-pypi: |
33 | 33 | name: >- |
34 | 34 | Publish Python 🐍 distribution 📦 to PyPI |
35 | | - if: startsWith(github.ref, 'refs/tags/') # only publish to PyPI on tag pushes |
| 35 | + if: startsWith(github.ref, 'refs/tags/') # only publish to PyPI on tag pushes |
36 | 36 | needs: |
37 | | - - build |
| 37 | + - build |
38 | 38 | runs-on: ubuntu-latest |
39 | 39 | environment: |
40 | 40 | name: pypi |
41 | 41 | url: https://pypi.org/p/snakevision |
42 | 42 | permissions: |
43 | | - id-token: write # IMPORTANT: mandatory for trusted publishing |
| 43 | + id-token: write # IMPORTANT: mandatory for trusted publishing |
44 | 44 |
|
45 | 45 | steps: |
46 | | - - name: Download all the dists |
47 | | - uses: actions/download-artifact@v6 |
48 | | - with: |
49 | | - name: python-package-distributions |
50 | | - path: dist/ |
51 | | - - name: Publish distribution 📦 to PyPI |
52 | | - uses: pypa/gh-action-pypi-publish@release/v1 |
| 46 | + - name: Download all the dists |
| 47 | + uses: actions/download-artifact@v6 |
| 48 | + with: |
| 49 | + name: python-package-distributions |
| 50 | + path: dist/ |
| 51 | + - name: Publish distribution 📦 to PyPI |
| 52 | + uses: pypa/gh-action-pypi-publish@release/v1 |
0 commit comments