File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -12,12 +12,17 @@ permissions:
1212
1313jobs :
1414 release-build :
15+ name : Build distribution
1516 runs-on : ubuntu-latest
1617 permissions :
1718 contents : read
19+ attestations : write
20+ id-token : write
1821
1922 steps :
2023 - uses : actions/checkout@v4
24+ with :
25+ fetch-depth : 0
2126
2227 - uses : actions/setup-python@v5
2328 with :
@@ -41,27 +46,30 @@ jobs:
4146 with :
4247 name : release-dists
4348 path : dist/
49+ if-no-files-found : error
4450
4551 pypi-publish :
52+ name : Publish to PyPI
4653 runs-on : ubuntu-latest
4754 needs :
4855 - release-build
4956 permissions :
50- # IMPORTANT: this permission is mandatory for trusted publishing
57+ contents : read
5158 id-token : write
5259
5360 environment :
5461 name : pypi
5562 url : https://pypi.org/project/django-rustfs/${{ github.event.release.name }}
5663
5764 steps :
58- - name : Retrieve release distributions
65+ - name : Download distributions
5966 uses : actions/download-artifact@v4
6067 with :
6168 name : release-dists
6269 path : dist/
6370
64- - name : Publish release distributions to PyPI
71+ - name : Publish to PyPI
6572 uses : pypa/gh-action-pypi-publish@release/v1
6673 with :
6774 packages-dir : dist/
75+ print-hash : true
You can’t perform that action at this time.
0 commit comments