specify when to run the job
MODIFY
.github/workflows/build_linux.yml
.github/workflows/build_linux.yml
@@ -77,9 +77,10 @@ jobs:
echo "release_id=${release_id}" >> $GITHUB_ENV
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
+ if: ${{ github.event_name == 'create' && github.event.ref_type == 'tag' && matrix.py == '3.10.0' }}
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
- file: */*.whl
+ file: ./*/*.whl
tag: ${{ github.ref }}
overwrite: true
file_glob: true

MODIFY
.github/workflows/build_mac.yml
.github/workflows/build_mac.yml
@@ -71,6 +71,7 @@ jobs:
echo "release_id=${release_id}" >> $GITHUB_ENV
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
+ if: ${{ github.event_name == 'create' && github.event.ref_type == 'tag' && matrix.py != 'pypy-3.8' }}
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: dist/*.whl

MODIFY
.github/workflows/build_windows.yml
.github/workflows/build_windows.yml
@@ -56,6 +56,7 @@ jobs:
echo "release_id=${release_id}" >> $GITHUB_ENV
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
+ if: ${{ github.event_name == 'create' && github.event.ref_type == 'tag' && matrix.py != 'pypy-3.7' }}
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: dist/*.whl

specify when to run the job