@@ -22,11 +22,11 @@ jobs:
2222 py_version : " 3.13"
2323 runs-on : ${{ matrix.os }}
2424 steps :
25- - uses : actions/checkout@v4
25+ - uses : actions/checkout@v6
2626 with :
2727 fetch-depth : 0
2828 - name : Set up Python
29- uses : actions/setup-python@v5
29+ uses : actions/setup-python@v6
3030 with :
3131 python-version : ${{ matrix.py_version }}
3232 - name : Install dependencies
@@ -44,16 +44,14 @@ jobs:
4444 poe test
4545
4646 build :
47- permissions :
48- id-token : write # IMPORTANT: this permission is mandatory for trusted publishing
4947 runs-on : ubuntu-latest
5048 needs : test
5149 steps :
52- - uses : actions/checkout@v4
50+ - uses : actions/checkout@v6
5351 with :
5452 fetch-depth : 0
5553 - name : Set up Python 3.10
56- uses : actions/setup-python@v5
54+ uses : actions/setup-python@v6
5755 with :
5856 python-version : " 3.10"
5957 - name : Install dependencies
@@ -65,11 +63,25 @@ jobs:
6563 run : |
6664 poe build
6765 - name : Save built package
68- uses : actions/upload-artifact@v4
66+ uses : actions/upload-artifact@v6
6967 with :
7068 name : package
7169 path : |
7270 dist
73- - name : Publish to PyPi
74- if : ${{ github.ref_type == 'tag' }}
71+
72+ upload :
73+ name : Publish to PyPi
74+ needs : build
75+ if : startsWith(github.ref, 'refs/tags/') # only publish to PyPI on tag pushes
76+ permissions :
77+ id-token : write # IMPORTANT: this permission is mandatory for trusted publishing
78+ runs-on : ubuntu-latest
79+ steps :
80+ - name : Download all the dists
81+ uses : actions/download-artifact@v6
82+ with :
83+ name : package
84+ path : dist/
85+ - name : Publish distribution to PyPI
7586 uses : pypa/gh-action-pypi-publish@release/v1
87+
0 commit comments