Skip to content

Commit 5f46e54

Browse files
committed
fixing setup
1 parent ebccbf8 commit 5f46e54

File tree

3 files changed

+54
-394
lines changed

3 files changed

+54
-394
lines changed

.github/workflows/temp.yml renamed to .github/workflows/buuld_wheels.yml

Lines changed: 54 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ jobs:
118118
runs-on: windows-latest
119119
strategy:
120120
matrix:
121-
architecture: [x64, x86]
121+
architecture: [x64]
122122

123123
steps:
124124
- uses: actions/checkout@v3
@@ -189,4 +189,56 @@ jobs:
189189
- uses: actions/upload-artifact@v4
190190
with:
191191
path: ./quaddtype/wheelhouse/*.whl
192-
name: wheels-windows-${{ matrix.architecture }}
192+
name: wheels-windows-${{ matrix.architecture }}
193+
194+
publish_to_testpypi:
195+
name: Publish to TestPyPI
196+
needs: [build_wheels_linux, build_wheels_macos, build_wheels_windows]
197+
runs-on: ubuntu-latest
198+
if: startsWith(github.ref, 'refs/tags/')
199+
steps:
200+
- name: Download all workflow run artifacts
201+
uses: actions/download-artifact@v4
202+
with:
203+
path: dist
204+
- name: Publish to TestPyPI
205+
uses: pypa/[email protected]
206+
with:
207+
user: __token__
208+
password: ${{ secrets.PYPI_API_TOKEN }}
209+
repository-url: https://test.pypi.org/legacy/
210+
packages-dir: dist/*
211+
212+
create_release:
213+
name: Create Release
214+
needs: [build_wheels_linux, build_wheels_macos, build_wheels_windows]
215+
runs-on: ubuntu-latest
216+
if: startsWith(github.ref, 'refs/tags/')
217+
218+
steps:
219+
- name: Checkout code
220+
uses: actions/checkout@v2
221+
222+
- name: Download all workflow run artifacts
223+
uses: actions/download-artifact@v4
224+
with:
225+
path: artifacts
226+
227+
- name: Create Release
228+
id: create_release
229+
uses: actions/create-release@v1
230+
env:
231+
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
232+
with:
233+
tag_name: ${{ github.ref }}
234+
release_name: Release ${{ github.ref }}
235+
draft: false
236+
prerelease: false
237+
238+
- name: Upload Release Assets
239+
uses: softprops/action-gh-release@v1
240+
if: startsWith(github.ref, 'refs/tags/')
241+
with:
242+
files: ./artifacts/**/*.whl
243+
env:
244+
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}

build_wheel.yml

Lines changed: 0 additions & 278 deletions
This file was deleted.

0 commit comments

Comments
 (0)