Skip to content

Commit 28951ab

Browse files
committed
adding on-release trigger for GA; fix abi tag
1 parent c419d55 commit 28951ab

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/tests+artifacts+pypi.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ on:
1111
branches: [ main ]
1212
schedule:
1313
- cron: '0 13 * * 4'
14+
release:
15+
types: [published]
1416

1517
jobs:
1618
build:
@@ -75,13 +77,14 @@ jobs:
7577
path: dist
7678

7779
- if: matrix.platform == 'ubuntu-latest'
78-
run: python -c "import sys; vi=sys.version_info; abitag='m' if vi.minor<8 else ''; print(f'PV={vi.major}{vi.minor}{abitag}')" >> $GITHUB_ENV
80+
run: python -c "import sys; vi=sys.version_info; print(f'PV={vi.major}{vi.minor}')" >> $GITHUB_ENV
81+
run: python -c "import sys; vi=sys.version_info; abitag='m' if vi.minor<8 else ''; print(f'PVA={vi.major}{vi.minor}{abitag}')" >> $GITHUB_ENV
7982

8083
- if: matrix.platform == 'ubuntu-latest'
8184
uses: RalfG/[email protected]
8285
with:
8386
build-requirements: 'setuptools_scm'
84-
python-versions: cp${{ env.PV }}-cp${{ env.PV }}
87+
python-versions: cp${{ env.PV }}-cp${{ env.PVA }}
8588
pre-build-command: 'git config --global --add safe.directory "*"'
8689

8790
- if: matrix.platform == 'ubuntu-latest'

0 commit comments

Comments
 (0)