You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# NB: I needed to set the trusted publisher to repo NKL, not KLR, since that was its original name. Scary detail! No idea how I'd figure that out without knowing the original name.
112
-
publish-to-testpypi:
113
-
name: Publish Python 🐍 distribution 📦 to TestPyPI
114
-
needs:
115
-
- build
116
-
if: startsWith(github.ref, 'refs/tags/') # only publish to pypi on tag pushes
117
-
runs-on: ubuntu-latest
118
-
119
-
# The `environment` just restricts the scope of trusted publishing. You
120
-
# add this to the things you trust in the pypi UI.
121
-
environment:
122
-
name: testpypi
123
-
124
-
permissions:
125
-
id-token: write # IMPORTANT: mandatory for trusted publishing
126
-
127
-
steps:
128
-
- uses: actions/checkout@v4 # for scripts
129
-
130
-
- name: Download all the dists
131
-
uses: actions/download-artifact@v4
132
-
with:
133
-
# name: python-package-distributions
134
-
# # unpacks all CIBW artifacts into dist/
135
-
# pattern: cibw-*
136
-
path: dist/
137
-
merge-multiple: true
138
-
139
-
- name: List the wheels
140
-
run: |
141
-
ls -1 dist/
142
-
143
-
- name: Rename OSX wheels
144
-
working-directory: ./dist
145
-
run: ../bin/rename-wheels # .. because we are starting in ./dist
146
-
147
-
- name: Publish distribution 📦 to TestPyPI
148
-
uses: pypa/gh-action-pypi-publish@release/v1
149
-
with:
150
-
repository-url: https://test.pypi.org/legacy/
151
-
verbose: true
152
-
skip-existing: true
153
-
154
-
# For this step to succeed, you must have bumped the klr version in interop/pyproject.toml
155
-
publish-to-pypi:
156
-
name: Publish Python 🐍 distribution 📦 to PyPI
157
-
needs:
158
-
- build
159
-
if: startsWith(github.ref, 'refs/tags/') # only publish to pypi on tag pushes
160
-
runs-on: ubuntu-latest
161
-
162
-
# The `environment` just restricts the scope of trusted publishing. You
163
-
# add this to the things you trust in the pypi UI.
164
-
environment:
165
-
name: pypi
166
-
167
-
permissions:
168
-
id-token: write # IMPORTANT: mandatory for trusted publishing
169
-
170
-
steps:
171
-
- uses: actions/checkout@v4 # for scripts
172
-
173
-
- name: Download all the dists
174
-
uses: actions/download-artifact@v4
175
-
with:
176
-
# name: python-package-distributions
177
-
# # unpacks all CIBW artifacts into dist/
178
-
# pattern: cibw-*
179
-
path: dist/
180
-
merge-multiple: true
181
-
182
-
- name: List the wheels
183
-
run: |
184
-
ls -1 dist/
185
-
186
-
- name: Rename OSX wheels
187
-
working-directory: ./dist
188
-
run: ../bin/rename-wheels # .. because we are starting in ./dist
0 commit comments