Skip to content

Commit 24ca7b5

Browse files
authored
Update build.yml
1 parent a4dd9a8 commit 24ca7b5

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/build.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ name: Build and upload to PyPI
44
# on: [push, pull_request]
55
# on: [pull_request]
66
# Alternatively, to publish when a (published) GitHub Release is created, use the following:
7-
on: [push, pull_request]
8-
# release:
9-
# types: [published]
7+
on:
8+
release:
9+
types: [published]
1010

1111
jobs:
1212
build-n-publish:
@@ -33,7 +33,7 @@ jobs:
3333
--outdir dist/
3434
.
3535
- name: Publish distribution 📦 to PyPI
36-
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v')
36+
# if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v')
3737
uses: pypa/gh-action-pypi-publish@master
3838
with:
3939
password: ${{ secrets.PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)