@@ -148,7 +148,7 @@ jobs:
148
148
git clone --branch 3.8 https://github.com/shibatch/sleef.git
149
149
cd sleef
150
150
cmake -S . -B build -G "Visual Studio 17 2022" -A ${{ matrix.architecture == 'x86' && 'Win32' || 'x64' }} -DSLEEF_BUILD_QUAD:BOOL=ON -DSLEEF_BUILD_SHARED_LIBS:BOOL=ON -DCMAKE_POSITION_INDEPENDENT_CODE=ON
151
- cmake --build build --config Release --parallel
151
+ cmake --build build --config Release
152
152
cmake --install build --prefix "C:/sleef" --config Release
153
153
154
154
- name : Setup build environment
@@ -194,54 +194,61 @@ jobs:
194
194
path : ./quaddtype/wheelhouse/*.whl
195
195
name : wheels-windows-${{ matrix.architecture }}
196
196
197
- publish_to_testpypi :
198
- name : Publish to TestPyPI
197
+ publish_to_pypi :
198
+ name : Publish to PyPI
199
199
needs : [build_wheels_linux, build_wheels_macos, build_wheels_windows]
200
200
runs-on : ubuntu-latest
201
201
if : startsWith(github.ref, 'refs/tags/quaddtype-v')
202
+
203
+ environment :
204
+ name : quadtype_release
205
+ url : https://pypi.org/p/numpy-quaddtype
206
+
207
+ permissions :
208
+ id-token : write # IMPORTANT: mandatory for trusted publishing
209
+
202
210
steps :
203
211
- name : Download all workflow run artifacts
204
212
uses : actions/download-artifact@v4
205
213
with :
206
214
path : dist
207
- - name : Publish to TestPyPI
208
- uses : pypa/gh-action-pypi-publish@v1.9.0
215
+
216
+ - name : Publish to PyPI
217
+ uses : pypa/gh-action-pypi-publish@release/v1
209
218
with :
210
- user : __token__
211
- password : ${{ secrets.PYPI_API_TOKEN }}
212
- repository-url : https://test.pypi.org/legacy/
213
219
packages-dir : dist/*
214
220
215
- create_release :
216
- name : Create Release
217
- needs : [build_wheels_linux, build_wheels_macos, build_wheels_windows]
218
- runs-on : ubuntu-latest
219
- if : startsWith(github.ref, 'refs/tags/quaddtype-v')
220
-
221
- steps :
222
- - name : Checkout code
223
- uses : actions/checkout@v2
224
-
225
- - name : Download all workflow run artifacts
226
- uses : actions/download-artifact@v4
227
- with :
228
- path : artifacts
229
-
230
- - name : Create Release
231
- id : create_release
232
- uses : actions/create-release@v1
233
- env :
234
- GITHUB_TOKEN : ${{ secrets.ACCESS_TOKEN }}
235
- with :
236
- tag_name : ${{ github.ref }}
237
- release_name : Release ${{ github.ref }}
238
- draft : false
239
- prerelease : false
240
-
241
- - name : Upload Release Assets
242
- uses : softprops/action-gh-release@v1
243
- if : startsWith(github.ref, 'refs/tags/')
244
- with :
245
- files : ./artifacts/**/*.whl
246
- env :
247
- GITHUB_TOKEN : ${{ secrets.ACCESS_TOKEN }}
221
+ # With the current setup, we are not creating a release on GitHub.
222
+ # create_release:
223
+ # name: Create Release
224
+ # needs: [build_wheels_linux, build_wheels_macos, build_wheels_windows]
225
+ # runs-on: ubuntu-latest
226
+ # if: startsWith(github.ref, 'refs/tags/quaddtype-v')
227
+
228
+ # steps:
229
+ # - name: Checkout code
230
+ # uses: actions/checkout@v2
231
+
232
+ # - name: Download all workflow run artifacts
233
+ # uses: actions/download-artifact@v4
234
+ # with:
235
+ # path: artifacts
236
+
237
+ # - name: Create Release
238
+ # id: create_release
239
+ # uses: actions/create-release@v1
240
+ # env:
241
+ # GITHUB_TOKEN: ${{ secrets.QUADDTYPE_GITHUB_TOKEN }}
242
+ # with:
243
+ # tag_name: ${{ github.ref }}
244
+ # release_name: Release ${{ github.ref }}
245
+ # draft: false
246
+ # prerelease: false
247
+
248
+ # - name: Upload Release Assets
249
+ # uses: softprops/action-gh-release@v1
250
+ # if: startsWith(github.ref, 'refs/tags/')
251
+ # with:
252
+ # files: ./artifacts/**/*.whl
253
+ # env:
254
+ # GITHUB_TOKEN: ${{ secrets.QUADDTYPE_GITHUB_TOKEN }}
0 commit comments