Skip to content

Commit 4c3de5e

Browse files
committed
Run release.yml on master and tags; only release on tags
1 parent b333611 commit 4c3de5e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,13 @@ name: Release
22

33
on:
44
push:
5+
branches:
6+
- master
57
tags:
68
- '*'
79

810
jobs:
911
pypi-publish:
10-
if: startsWith(github.ref, 'refs/tags')
1112
name: Upload release to PyPI
1213
runs-on: ubuntu-latest
1314
environment:
@@ -26,4 +27,5 @@ jobs:
2627
python -m pip install setuptools build
2728
python -m build -s
2829
- name: Publish package distributions to PyPI
30+
if: startsWith(github.ref, 'refs/tags')
2931
uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)