Skip to content

Commit eba7afb

Browse files
allow publish from tag
1 parent f0bf7c7 commit eba7afb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/python-publish.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ permissions:
1818
jobs:
1919
deploy:
2020

21+
# only run if commit is a push to master, the testing finished, and tagged as version
22+
if: github.repository_owner == 'materialsproject' && github.event.workflow_run.conclusion == 'success' && github.event.workflow_run.event == 'push' && startsWith(github.event.workflow_run.head_branch, 'v0.')
2123
runs-on: ubuntu-latest
2224

2325
steps:

0 commit comments

Comments
 (0)