Skip to content

Commit

Permalink
Do not upload wheels to release (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
haiiliin authored Oct 21, 2024
1 parent 9a9ac91 commit 8249e09
Showing 1 changed file with 5 additions and 23 deletions.
28 changes: 5 additions & 23 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,6 @@ concurrency:
group: wheels-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

permissions:
contents: write
pull-requests: write

jobs:
build-wheels:
runs-on: ${{ matrix.os }}
Expand Down Expand Up @@ -81,14 +77,6 @@ jobs:
name: cppbinder-wheels-${{ matrix.os }}-${{ matrix.archs }}-${{ matrix.impl }}-${{ github.event_name == 'release' && github.ref_name || github.sha }}
path: ./wheelhouse/*.whl

- name: Upload wheels to release
if: github.event_name == 'release'
shell: bash
run: |
gh release upload ${{ github.ref_name }} ./wheelhouse/*.whl --clobber
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

build-sdist:
runs-on: ubuntu-22.04
steps:
Expand Down Expand Up @@ -116,13 +104,6 @@ jobs:
name: cppbinder-sdist-${{ github.event_name == 'release' && github.ref_name || github.sha }}
path: ./python/dist/*.tar.gz

- name: Upload source distribution to release
if: github.event_name == 'release'
run: |
gh release upload ${{ github.ref_name }} ./python/dist/*.tar.gz --clobber
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

publish:
needs: [build-wheels, build-sdist]
if: github.event_name == 'release'
Expand All @@ -132,10 +113,11 @@ jobs:
uses: actions/checkout@v4

- name: Download wheels and source distribution
run: |
gh release download ${{ github.ref_name }} --pattern *.whl --pattern *.tar.gz --dir dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: actions/download-artifact@v4
with:
pattern: cppbinder-*
path: dist
merge-multiple: true

- name: Publish package to PyPI
uses: pypa/[email protected]
Expand Down

0 comments on commit 8249e09

Please sign in to comment.