2
2
# - https://learn.scientific-python.org/development/guides/gha-wheels/
3
3
# - https://cibuildwheel.pypa.io/en/stable/setup/#github-actions
4
4
# - 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]
5
10
6
11
name : Wheel
7
12
8
13
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"
9
22
push :
10
23
branches :
11
24
- main
62
75
name : Build wheels on ${{ matrix.os }}
63
76
runs-on : ${{ matrix.os }}
64
77
strategy :
65
- fail-fast : false
78
+ fail-fast : false # don't exit abruptly if another wheel can't be built
66
79
matrix :
67
80
os : [
68
81
ubuntu-latest,
@@ -108,15 +121,15 @@ jobs:
108
121
upload_all :
109
122
name : Publish to PyPI
110
123
needs : [build_wheels, make_sdist]
111
- environment : testpypi
124
+ environment : testpypi # CHANGEME to pypi (to start uploading to PyPI)
112
125
permissions :
113
126
id-token : write
114
127
attestations : write
115
128
contents : read
116
129
117
130
runs-on : ubuntu-latest
118
- # if: github.event_name == 'release' && github.event.action == 'published'
119
131
# upload to PyPI on every tag starting with 'grackle-'
132
+ # uncomment the following line when we start uploading to PyPI
120
133
# if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/grackle-')
121
134
steps :
122
135
- uses : actions/download-artifact@v4
@@ -132,5 +145,5 @@ jobs:
132
145
133
146
- name : Publish to pypi
134
147
uses : pypa/gh-action-pypi-publish@release/v1
135
- with :
148
+ with : # DELETEME (and the next line) to start uploading to PyPI
136
149
repository-url : https://test.pypi.org/legacy/
0 commit comments