File tree 1 file changed +23
-4
lines changed
1 file changed +23
-4
lines changed Original file line number Diff line number Diff line change @@ -70,12 +70,26 @@ jobs:
70
70
python -m pip install dist/xarray*.whl
71
71
python -m xarray.util.print_versions
72
72
73
+ upload-to-test-pypi :
74
+ needs : test-built-dist
75
+ if : github.event_name == 'push'
76
+ runs-on : ubuntu-latest
77
+
78
+ environment :
79
+ name : pypi
80
+ url : https://test.pypi.org/p/xarray
81
+ permissions :
82
+ id-token : write
83
+
84
+ steps :
85
+ - uses : actions/download-artifact@v3
86
+ with :
87
+ name : releases
88
+ path : dist
73
89
- name : Publish package to TestPyPI
74
90
if : github.event_name == 'push'
75
91
76
92
with :
77
- user : __token__
78
- password : ${{ secrets.TESTPYPI_TOKEN }}
79
93
repository_url : https://test.pypi.org/legacy/
80
94
verbose : true
81
95
84
98
needs : test-built-dist
85
99
if : github.event_name == 'release'
86
100
runs-on : ubuntu-latest
101
+
102
+ environment :
103
+ name : pypi
104
+ url : https://pypi.org/p/xarray
105
+ permissions :
106
+ id-token : write
107
+
87
108
steps :
88
109
- uses : actions/download-artifact@v3
89
110
with :
92
113
- name : Publish package to PyPI
93
114
94
115
with :
95
- user : __token__
96
- password : ${{ secrets.PYPI_TOKEN }}
97
116
verbose : true
You can’t perform that action at this time.
0 commit comments