Ensure we only react to push onto master; disable via if clause
This commit is contained in:
parent
707ec08808
commit
3c7df90810
12
.github/workflows/publish-to-pypi.yml
vendored
12
.github/workflows/publish-to-pypi.yml
vendored
@ -1,17 +1,17 @@
|
||||
name: Publish Python package to PyPI
|
||||
|
||||
on:
|
||||
# Action currently disabled to only push to TestPyPI for now
|
||||
|
||||
#push:
|
||||
# tags:
|
||||
# - '*'
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
tags:
|
||||
- '*'
|
||||
|
||||
jobs:
|
||||
publish:
|
||||
name: Publish to PyPI
|
||||
runs-on: ubuntu-latest
|
||||
if: startsWith(github.ref, 'refs/tags/') # Only run on tagged commits
|
||||
if: false && startsWith(github.ref, 'refs/tags/') # Only run on tagged commits
|
||||
|
||||
steps:
|
||||
- name: Check out code
|
||||
|
2
.github/workflows/publish-to-test-pypi.yml
vendored
2
.github/workflows/publish-to-test-pypi.yml
vendored
@ -1,6 +1,8 @@
|
||||
name: Publish Python package to TestPyPI
|
||||
|
||||
on:
|
||||
branches:
|
||||
- master
|
||||
push:
|
||||
tags:
|
||||
- '*'
|
||||
|
Loading…
Reference in New Issue
Block a user