Skip to content

Commit a041973

Browse files
Copilotalexlib
andauthored
[WIP] Fix upload to PyPI action not working (#227)
* Initial plan * Fix Upload to PyPI not activating for non-v-prefixed tags Co-authored-by: alexlib <747110+alexlib@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: alexlib <747110+alexlib@users.noreply.github.com>
1 parent 9d69e31 commit a041973

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/cibuildwheel.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Build Wheels
33
on:
44
push:
55
branches: [ main, master ]
6-
tags: [ 'v*' ]
6+
tags: [ 'v*', '[0-9]*' ]
77
pull_request:
88
branches: [ main, master ]
99
workflow_dispatch:
@@ -63,7 +63,7 @@ jobs:
6363
build_sdist:
6464
name: Build source distribution
6565
runs-on: ubuntu-latest
66-
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
66+
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
6767

6868
steps:
6969
- uses: actions/checkout@v5
@@ -99,7 +99,7 @@ jobs:
9999
name: Upload to PyPI
100100
needs: [build_wheels, build_sdist]
101101
runs-on: ubuntu-latest
102-
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
102+
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
103103
permissions:
104104
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
105105

0 commit comments

Comments
 (0)