Skip to content

Commit a019f22

Browse files
authored
MAINT: Upload nightly wheels and run packaging on PRs and pushes (#1867)
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.
1 parent 6a36d49 commit a019f22

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.github/workflows/publish.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ on:
66
release:
77
types:
88
- published
9+
schedule:
10+
- cron: "0 2 * * *" # at 2AM UTC
911
workflow_dispatch:
1012

1113
env:
@@ -57,9 +59,16 @@ jobs:
5759

5860
- name: "Unzip artifact"
5961
run: |
60-
tar xf dist/*.tar.gz --strip-components=1
62+
tar xvf dist/*.tar.gz --strip-components=1
6163
6264
- name: "Publish PST package to PyPI 🚀"
6365
uses: pypa/gh-action-pypi-publish@release/v1
6466
# only publish if this is a published release by pydata
6567
if: github.repository_owner == 'pydata' && github.event_name == 'release' && github.event.action == 'published'
68+
69+
- name: "Publish PST package to scientific-python-nightly-wheels 🚀"
70+
uses: scientific-python/upload-nightly-action@b67d7fcc0396e1128a474d1ab2b48aa94680f9fc # 0.5.0
71+
with:
72+
artifacts_path: dist
73+
anaconda_nightly_upload_token: ${{ secrets.ANACONDA_ORG_UPLOAD_TOKEN }}
74+
if: github.repository_owner == 'pydata' && github.event_name == 'schedule'

0 commit comments

Comments
 (0)