Skip to content

Commit 0f2c183

Browse files
committed
tweak the workflow
1 parent a4bd2f4 commit 0f2c183

File tree

1 file changed

+17
-4
lines changed

1 file changed

+17
-4
lines changed

.github/workflows/wheels.yml

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,23 @@
22
# - https://learn.scientific-python.org/development/guides/gha-wheels/
33
# - https://cibuildwheel.pypa.io/en/stable/setup/#github-actions
44
# - https://github.com/yt-project/yt/blob/main/.github/workflows/wheels.yaml
5+
#
6+
# the numpy action that does the exact same thing
7+
# https://github.com/numpy/numpy/blob/main/.github/workflows/wheels.yml
8+
# illustrates a nifty trick for configuring the action to run whenever a commit
9+
# is pushed where the commit-message is prefixed with [wheel build]
510

611
name: Wheel
712

813
on:
14+
schedule:
15+
# ┌───────────── minute (0 - 59)
16+
# │ ┌───────────── hour (0 - 23)
17+
# │ │ ┌───────────── day of the month (1 - 31)
18+
# │ │ │ ┌───────────── month (1 - 12 or JAN-DEC)
19+
# │ │ │ │ ┌───────────── day of the week (0 - 6 or SUN-SAT)
20+
# │ │ │ │ │
21+
- cron: "17 0 * * MON"
922
push:
1023
branches:
1124
- main
@@ -62,7 +75,7 @@ jobs:
6275
name: Build wheels on ${{ matrix.os }}
6376
runs-on: ${{ matrix.os }}
6477
strategy:
65-
fail-fast: false
78+
fail-fast: false # don't exit abruptly if another wheel can't be built
6679
matrix:
6780
os: [
6881
ubuntu-latest,
@@ -108,15 +121,15 @@ jobs:
108121
upload_all:
109122
name: Publish to PyPI
110123
needs: [build_wheels, make_sdist]
111-
environment: testpypi
124+
environment: testpypi # CHANGEME to pypi (to start uploading to PyPI)
112125
permissions:
113126
id-token: write
114127
attestations: write
115128
contents: read
116129

117130
runs-on: ubuntu-latest
118-
#if: github.event_name == 'release' && github.event.action == 'published'
119131
# upload to PyPI on every tag starting with 'grackle-'
132+
# uncomment the following line when we start uploading to PyPI
120133
#if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/grackle-')
121134
steps:
122135
- uses: actions/download-artifact@v4
@@ -132,5 +145,5 @@ jobs:
132145

133146
- name: Publish to pypi
134147
uses: pypa/gh-action-pypi-publish@release/v1
135-
with:
148+
with: # DELETEME (and the next line) to start uploading to PyPI
136149
repository-url: https://test.pypi.org/legacy/

0 commit comments

Comments
 (0)