File tree 1 file changed +26
-7
lines changed
1 file changed +26
-7
lines changed Original file line number Diff line number Diff line change 9
9
- published
10
10
11
11
jobs :
12
- pypi_push :
13
- environment : deploy
14
- if : " github.repository == 'MDAnalysis/GridDataFormats'"
15
- name : Build, upload and test pure Python wheels
12
+ testpypi_push :
13
+ environment :
14
+ name : deploy
15
+ url : https://test.pypi.org/p/GridDataFormats
16
+ permissions :
17
+ id-token : write
18
+ if : |
19
+ github.repository == 'MDAnalysis/GridDataFormats' &&
20
+ (github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
21
+ name : Build, upload and test pure Python wheels to TestPypi
16
22
runs-on : ubuntu-latest
17
23
18
24
steps :
19
- - uses : actions/checkout@v3
25
+ - uses : actions/checkout@v4
20
26
21
27
- name : testpypi_deploy
22
28
uses : MDAnalysis/pypi-deployment@main
23
29
if : github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
24
30
with :
25
- token : ${{ secrets.TEST_PYPI_API_TOKEN }}
26
31
test_submission : true
27
32
package_name : GridDataFormats
28
33
module_name : ' gridData'
29
34
35
+ pypi_push :
36
+ environment :
37
+ name : deploy
38
+ url : https://pypi.org/p/GridDataFormats
39
+ permissions :
40
+ id-token : write
41
+ if : |
42
+ github.repository == 'MDAnalysis/GridDataFormats' &&
43
+ (github.event_name == 'release' && github.event.action == 'published')
44
+ name : Build, upload and test pure Python wheels to PyPi
45
+ runs-on : ubuntu-latest
46
+
47
+ steps :
48
+ - uses : actions/checkout@v4
49
+
30
50
- name : pypi_deploy
31
51
uses : MDAnalysis/pypi-deployment@main
32
52
if : github.event_name == 'release' && github.event.action == 'published'
33
53
with :
34
- token : ${{ secrets.PYPI_API_TOKEN }}
35
54
package_name : GridDataFormats
36
55
module_name : ' gridData'
You can’t perform that action at this time.
0 commit comments