Skip to content

Commit d7f3411

Browse files
committed
CI: Use scientific-python/upload-nightly-action for nightly wheels
1 parent c3bbb0d commit d7f3411

File tree

2 files changed

+5
-50
lines changed

2 files changed

+5
-50
lines changed

.github/workflows/wheels.yml

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ jobs:
4545
(github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') && ( ! endsWith(github.ref, 'dev0')))
4646
runs-on: ubuntu-24.04
4747
env:
48-
IS_PUSH: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') }}
4948
IS_SCHEDULE_DISPATCH: ${{ github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' }}
5049
outputs:
5150
sdist_file: ${{ steps.save-path.outputs.sdist_name }}
@@ -118,7 +117,6 @@ jobs:
118117
python: ["cp313t", "3.13"]
119118

120119
env:
121-
IS_PUSH: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') }}
122120
IS_SCHEDULE_DISPATCH: ${{ github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' }}
123121
steps:
124122
- name: Checkout pandas
@@ -204,18 +202,11 @@ jobs:
204202
path: ./wheelhouse/*.whl
205203

206204
- name: Upload wheels & sdist
207-
if: ${{ success() && (env.IS_SCHEDULE_DISPATCH == 'true' || env.IS_PUSH == 'true') }}
208-
shell: bash -el {0}
209-
env:
210-
PANDAS_NIGHTLY_UPLOAD_TOKEN: ${{ secrets.PANDAS_NIGHTLY_UPLOAD_TOKEN }}
211-
# trigger an upload to
212-
# https://anaconda.org/scientific-python-nightly-wheels/pandas
213-
# for cron jobs or "Run workflow" (restricted to main branch).
214-
# The tokens were originally generated at anaconda.org
215-
run: |
216-
source ci/upload_wheels.sh
217-
set_upload_vars
218-
upload_wheels
205+
if: ${{ success() && env.IS_SCHEDULE_DISPATCH == 'true' }}
206+
uses: scientific-python/upload-nightly-action@0.6.2
207+
with:
208+
artifacts_path: dist
209+
anaconda_nightly_upload_token: ${{secrets.PANDAS_NIGHTLY_UPLOAD_TOKEN}}
219210

220211
publish:
221212
if: >

ci/upload_wheels.sh

Lines changed: 0 additions & 36 deletions
This file was deleted.

0 commit comments

Comments
 (0)