Skip to content

Commit 794a957

Browse files
authored
Bump action and limit Python for build, split release from nightly-release (#2337)
Nightly upload should have been working every-week, and was not named "nightly"
1 parent 49b8b55 commit 794a957

1 file changed

Lines changed: 25 additions & 7 deletions

File tree

.github/workflows/publish.yml

Lines changed: 25 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,31 @@ jobs:
7676
--installpkg $dist_loc/*.whl \
7777
-- --deselect tests/test_build.py::test_translations
7878
79+
nightly-release-PST:
80+
runs-on: ubuntu-latest
81+
needs: [build-package]
82+
# only run this workflow for pydata owned repositories (avoid forks)
83+
if: github.repository_owner == 'pydata'
84+
environment:
85+
name: pst-release
86+
steps:
87+
- name: "Download PST built package 📦"
88+
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # 8.0.1
89+
with:
90+
name: Packages
91+
path: dist
92+
93+
- name: "Unzip artifact"
94+
run: |
95+
tar xvf dist/*.tar.gz --strip-components=1
96+
97+
- name: "Publish PST package to scientific-python-nightly-wheels 🚀"
98+
uses: scientific-python/upload-nightly-action@5748273c71e2d8d3a61f3a11a16421c8954f9ecf # 0.6.3
99+
with:
100+
artifacts_path: dist
101+
anaconda_nightly_upload_token: ${{ secrets.ANACONDA_ORG_UPLOAD_TOKEN }}
102+
if: github.repository_owner == 'pydata' && github.event_name == 'schedule'
103+
79104
release-PST:
80105
runs-on: ubuntu-latest
81106
needs: [build-package]
@@ -103,10 +128,3 @@ jobs:
103128
if: github.repository_owner == 'pydata' && github.event_name == 'release' && github.event.action == 'published'
104129
with:
105130
print-hash: true
106-
107-
- name: "Publish PST package to scientific-python-nightly-wheels 🚀"
108-
uses: scientific-python/upload-nightly-action@5748273c71e2d8d3a61f3a11a16421c8954f9ecf # 0.6.3
109-
with:
110-
artifacts_path: dist
111-
anaconda_nightly_upload_token: ${{ secrets.ANACONDA_ORG_UPLOAD_TOKEN }}
112-
if: github.repository_owner == 'pydata' && github.event_name == 'schedule'

0 commit comments

Comments
 (0)