Skip to content

Commit 611d6d1

Browse files
committed
only run on tags
1 parent 80392ae commit 611d6d1

File tree

1 file changed

+27
-27
lines changed

1 file changed

+27
-27
lines changed

.github/workflows/python-wheels.yml

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ name: Build wheels
77

88
on:
99
push:
10-
# tags:
11-
# - "py-v*"
12-
# workflow_dispatch:
10+
tags:
11+
- "py-v*"
12+
workflow_dispatch:
1313

1414
permissions:
1515
contents: read
@@ -184,28 +184,28 @@ jobs:
184184
# name: wheels-sdist
185185
# path: dist
186186

187-
# release:
188-
# runs-on: ubuntu-latest
189-
# name: Release
190-
# # environment:
191-
# # name: release
192-
# # url: https://pypi.org/p/async-tiff
193-
# # permissions:
194-
# # # IMPORTANT: this permission is mandatory for trusted publishing
195-
# # id-token: write
196-
# if: startsWith(github.ref, 'refs/tags/')
197-
# needs: [linux, musllinux, windows, macos]
198-
# steps:
199-
# - uses: actions/download-artifact@v4
200-
# with:
201-
# pattern: wheels-*
202-
# merge-multiple: true
203-
# path: dist
204-
# - uses: actions/setup-python@v5
205-
# with:
206-
# python-version: 3.9
187+
release:
188+
runs-on: ubuntu-latest
189+
name: Release
190+
# environment:
191+
# name: release
192+
# url: https://pypi.org/p/async-tiff
193+
# permissions:
194+
# # IMPORTANT: this permission is mandatory for trusted publishing
195+
# id-token: write
196+
if: startsWith(github.ref, 'refs/tags/')
197+
needs: [linux, musllinux, windows, macos]
198+
steps:
199+
- uses: actions/download-artifact@v4
200+
with:
201+
pattern: wheels-*
202+
merge-multiple: true
203+
path: dist
204+
- uses: actions/setup-python@v5
205+
with:
206+
python-version: 3.9
207207

208-
# - uses: pypa/gh-action-pypi-publish@release/v1
209-
# with:
210-
# user: __token__
211-
# password: ${{ secrets.PYPI_API_TOKEN }}
208+
- uses: pypa/gh-action-pypi-publish@release/v1
209+
with:
210+
user: __token__
211+
password: ${{ secrets.PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)