From a019f22c09457da42d364a16751bb3a6f446cff9 Mon Sep 17 00:00:00 2001 From: Eric Larson Date: Thu, 6 Jun 2024 03:28:12 -0700 Subject: [PATCH] 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. --- .github/workflows/publish.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 3678ae616..f95d078ef 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -6,6 +6,8 @@ on: release: types: - published + schedule: + - cron: "0 2 * * *" # at 2AM UTC workflow_dispatch: env: @@ -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'