From 6f41aa1a55a51f086eddac0531fcd8cb806cc374 Mon Sep 17 00:00:00 2001 From: Eric Larson Date: Wed, 5 Jun 2024 12:05:49 -0700 Subject: [PATCH 1/4] MAINT: Upload nightly wheels and run packaging on PRs and pushes --- .github/workflows/publish.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 3678ae616..194dae459 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -6,6 +6,14 @@ on: release: types: - published + schedule: + - cron: "0 2 * * *" # at 2AM UTC + pull_request: + branches: + - main + push: + branches: + - main workflow_dispatch: env: @@ -63,3 +71,10 @@ jobs: 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' From 71a3a2902a4bff1938374e74f0210b47a8594143 Mon Sep 17 00:00:00 2001 From: Eric Larson Date: Wed, 5 Jun 2024 12:12:17 -0700 Subject: [PATCH 2/4] FIX: Prettier --- .github/workflows/publish.yml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 194dae459..9864e91b7 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -7,13 +7,10 @@ on: types: - published schedule: - - cron: "0 2 * * *" # at 2AM UTC + - cron: "0 2 * * *" # at 2AM UTC pull_request: branches: - main - push: - branches: - - main workflow_dispatch: env: @@ -73,7 +70,7 @@ jobs: 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 + uses: scientific-python/upload-nightly-action@b67d7fcc0396e1128a474d1ab2b48aa94680f9fc # 0.5.0 with: artifacts_path: dist anaconda_nightly_upload_token: ${{ secrets.ANACONDA_ORG_UPLOAD_TOKEN }} From 5c2dc8311e00797fae9212edb114abc2921ba559 Mon Sep 17 00:00:00 2001 From: Eric Larson Date: Wed, 5 Jun 2024 12:13:17 -0700 Subject: [PATCH 3/4] FIX: Verbose --- .github/workflows/publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 9864e91b7..dcec73a5e 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -62,7 +62,7 @@ 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 From c76cee6e8a67670451c63948c8591e8f6a7a3174 Mon Sep 17 00:00:00 2001 From: Eric Larson Date: Wed, 5 Jun 2024 12:45:51 -0700 Subject: [PATCH 4/4] FIX: Revert PR --- .github/workflows/publish.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index dcec73a5e..f95d078ef 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -8,9 +8,6 @@ on: - published schedule: - cron: "0 2 * * *" # at 2AM UTC - pull_request: - branches: - - main workflow_dispatch: env: