Skip to content

Commit

Permalink
fix action script
Browse files Browse the repository at this point in the history
  • Loading branch information
eeliu committed Oct 29, 2024
1 parent 1c57c7a commit c9e7148
Showing 1 changed file with 19 additions and 9 deletions.
28 changes: 19 additions & 9 deletions .github/workflows/build-wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,30 +57,36 @@ jobs:

- uses: actions/upload-artifact@v4
with:
name: pypi_test
name: pypi_test-${{ matrix.os }}
path: ./wheelhouse/*
retention-days: 1
if-no-files-found: error

publish-pypitest:
needs: build_wheels_pypitest
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v4
with:
name: pypi_test
pattern: pypi_test-*
merge-multiple: true
path: ./wheelhouse/

- name: show all artifact
run: |
ls -R ./wheelhouse/
ls -alR ./wheelhouse/
- name: Publish package to pypitest
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.EELIUTEST }}
packages_dir: ./wheelhouse/
repository_url: https://test.pypi.org/legacy/

packages-dir: ./wheelhouse/
repository-url: https://test.pypi.org/legacy/
skip_existing: true
verbose: true
print_hash: true
attestations: true
build_wheels:
name: Build wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
Expand Down Expand Up @@ -115,24 +121,28 @@ jobs:
CIBW_ARCHS_LINUX: auto aarch64
CIBW_ARCHS_WINDOWS: ARM64 AMD64 x86
CIBW_ARCHS_MACOS: auto x86_64 arm64
CIBW_SKIP: cp37-* cp38-* cp36-* pp*

- uses: actions/upload-artifact@v4
with:
name: pypi
name: pypi-${{ matrix.os }}
path: ./wheelhouse/*
retention-days: 1
if-no-files-found: error

publish:
needs: build_wheels
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
with:
name: pypi
pattern: pypi-*
merge-multiple: true
path: ./wheelhouse/

- name: show all artifact
run: |
ls -R ./wheelhouse/
ls -alR ./wheelhouse/
- name: Publish package to pypitest
uses: pypa/gh-action-pypi-publish@release/v1
Expand Down

0 comments on commit c9e7148

Please sign in to comment.