File tree Expand file tree Collapse file tree 2 files changed +9
-20
lines changed Expand file tree Collapse file tree 2 files changed +9
-20
lines changed Original file line number Diff line number Diff line change 13
13
name : Wheel builder
14
14
15
15
on :
16
+ release :
17
+ types : [published]
16
18
schedule :
17
19
# 3:27 UTC every day
18
20
- cron : " 27 3 * * *"
@@ -222,7 +224,7 @@ jobs:
222
224
223
225
publish :
224
226
if : >
225
- github.repository == 'evgmosme /pandas' &&
227
+ github.repository == 'pandas-dev /pandas' &&
226
228
github.event_name == 'push' &&
227
229
startsWith(github.ref, 'refs/tags/v')
228
230
@@ -233,7 +235,7 @@ jobs:
233
235
runs-on : ubuntu-latest
234
236
235
237
environment :
236
- name : testpypi # must match the Environment in repo settings
238
+ name : pypi
237
239
permissions :
238
240
id-token : write # OIDC for Trusted Publishing
239
241
contents : read
@@ -252,22 +254,9 @@ jobs:
252
254
-name '*.whl' -exec mv {} upload/ \;
253
255
find dist -name '*.tar.gz' -exec mv {} upload/ \;
254
256
255
- - name : Publish to **Test PyPI** (Trusted Publishing)
257
+ - name : Publish to **PyPI** (Trusted Publishing)
256
258
uses : pypa/gh-action-pypi-publish@release/v1
257
259
with :
258
- repository-url : https://test .pypi.org/legacy/
260
+ repository-url : https://upload .pypi.org/legacy/
259
261
packages-dir : upload
260
262
skip-existing : true
261
-
262
- # environment:
263
- # name: pypi
264
- # permissions:
265
- # id-token: write
266
- # contents: read
267
- #
268
- # - name: Publish to **PyPI** (Trusted Publishing)
269
- # uses: pypa/gh-action-pypi-publish@release/v1
270
- # with:
271
- # repository-url: https://upload.pypi.org/legacy/
272
- # packages-dir: upload
273
- # skip-existing: true
Original file line number Diff line number Diff line change @@ -445,9 +445,9 @@ which will be triggered when the tag is pushed.
445
445
- Set as the latest release: Leave checked, unless releasing a patch release for an older version
446
446
(e.g. releasing 1.4.5 after 1.5 has been released)
447
447
448
- 5. Upload wheels to PyPI::
449
-
450
- twine upload pandas/dist/pandas-<version>*.{whl,tar.gz} --skip-existing
448
+ 5. Wheels are uploaded automatically by GitHub Actions
449
+ via ** Trusted Publishing ** when the GitHub * Release *
450
+ is published. No manual `` twine upload `` step is required.
451
451
452
452
6. The GitHub release will after some hours trigger an
453
453
`automated conda-forge PR <https://github.com/conda-forge/pandas-feedstock/pulls >`_.
You can’t perform that action at this time.
0 commit comments