Skip to content

Commit

Permalink
MAINT: Upload nightly wheels and run packaging on PRs and pushes (#1867)
Browse files Browse the repository at this point in the history
It seems like it should be okay to run packaging steps on each PR and
push to `main`, but we'll see if it adds a lot of overhead. Then also
add a nightly wheel upload to
https://anaconda.org/scientific-python-nightly-wheels.

This will require getting an Anaconda token from the appropriate folks
and adding it as a secret, so marking as a draft for now.
  • Loading branch information
larsoner committed Jun 6, 2024
1 parent 6a36d49 commit a019f22
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ on:
release:
types:
- published
schedule:
- cron: "0 2 * * *" # at 2AM UTC
workflow_dispatch:

env:
Expand Down Expand Up @@ -57,9 +59,16 @@ jobs:

- name: "Unzip artifact"
run: |
tar xf dist/*.tar.gz --strip-components=1
tar xvf dist/*.tar.gz --strip-components=1
- name: "Publish PST package to PyPI 🚀"
uses: pypa/gh-action-pypi-publish@release/v1
# only publish if this is a published release by pydata
if: github.repository_owner == 'pydata' && github.event_name == 'release' && github.event.action == 'published'

- name: "Publish PST package to scientific-python-nightly-wheels 🚀"
uses: scientific-python/upload-nightly-action@b67d7fcc0396e1128a474d1ab2b48aa94680f9fc # 0.5.0
with:
artifacts_path: dist
anaconda_nightly_upload_token: ${{ secrets.ANACONDA_ORG_UPLOAD_TOKEN }}
if: github.repository_owner == 'pydata' && github.event_name == 'schedule'

0 comments on commit a019f22

Please sign in to comment.