File tree 1 file changed +22
-8
lines changed
1 file changed +22
-8
lines changed Original file line number Diff line number Diff line change @@ -75,10 +75,13 @@ jobs:
75
75
name : cibw-wheels-x86-${{ matrix.os }}-${{ strategy.job-index }}
76
76
path : ./wheelhouse/*.whl
77
77
78
- publish :
79
- name : Publish on PyPI
78
+ test- publish :
79
+ name : Upload release to TestPyPI
80
80
needs : [build-sdist, build-wheels]
81
- runs-on : ubuntu-24.04
81
+ runs-on : ubuntu-latest
82
+ environment : test-pypi
83
+ permissions :
84
+ id-token : write
82
85
steps :
83
86
- uses : actions/download-artifact@v4
84
87
with :
@@ -87,11 +90,22 @@ jobs:
87
90
merge-multiple : true
88
91
- uses : pypa/gh-action-pypi-publish@release/v1
89
92
with :
90
- user : __token__
91
- password : ${{ secrets.PYPI_API_TOKEN }}
92
- # For publishing to Test PyPI, uncomment next two lines:
93
- # password: ${{ secrets.TEST_PYPI_API_TOKEN }}
94
- # repository_url: https://test.pypi.org/legacy/
93
+ repository-url : https://test.pypi.org/legacy/
94
+
95
+ publish :
96
+ name : Upload release to PyPI
97
+ needs : [build-sdist, build-wheels, test-publish]
98
+ runs-on : ubuntu-latest
99
+ environment : pypi
100
+ permissions :
101
+ id-token : write
102
+ steps :
103
+ - uses : actions/download-artifact@v4
104
+ with :
105
+ pattern : cibw-*
106
+ path : dist
107
+ merge-multiple : true
108
+ - uses : pypa/gh-action-pypi-publish@release/v1
95
109
96
110
publish-docs :
97
111
name : Publish docs
You can’t perform that action at this time.
0 commit comments