|
45 | 45 | (github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') && ( ! endsWith(github.ref, 'dev0'))) |
46 | 46 | runs-on: ubuntu-24.04 |
47 | 47 | env: |
48 | | - IS_PUSH: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') }} |
49 | 48 | IS_SCHEDULE_DISPATCH: ${{ github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' }} |
50 | 49 | outputs: |
51 | 50 | sdist_file: ${{ steps.save-path.outputs.sdist_name }} |
@@ -118,7 +117,6 @@ jobs: |
118 | 117 | python: ["cp313t", "3.13"] |
119 | 118 |
|
120 | 119 | env: |
121 | | - IS_PUSH: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') }} |
122 | 120 | IS_SCHEDULE_DISPATCH: ${{ github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' }} |
123 | 121 | steps: |
124 | 122 | - name: Checkout pandas |
@@ -204,21 +202,11 @@ jobs: |
204 | 202 | path: ./wheelhouse/*.whl |
205 | 203 |
|
206 | 204 | - 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_STAGING_UPLOAD_TOKEN: ${{ secrets.PANDAS_STAGING_UPLOAD_TOKEN }} |
211 | | - PANDAS_NIGHTLY_UPLOAD_TOKEN: ${{ secrets.PANDAS_NIGHTLY_UPLOAD_TOKEN }} |
212 | | - # trigger an upload to |
213 | | - # https://anaconda.org/scientific-python-nightly-wheels/pandas |
214 | | - # for cron jobs or "Run workflow" (restricted to main branch). |
215 | | - # Tags will upload to |
216 | | - # https://anaconda.org/multibuild-wheels-staging/pandas |
217 | | - # The tokens were originally generated at anaconda.org |
218 | | - run: | |
219 | | - source ci/upload_wheels.sh |
220 | | - set_upload_vars |
221 | | - 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}} |
222 | 210 |
|
223 | 211 | publish: |
224 | 212 | if: > |
|
0 commit comments