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
|
name: Publish Python package to PyPI
|
||||||
|
|
||||||
on:
|
on:
|
||||||
# Action currently disabled to only push to TestPyPI for now
|
push:
|
||||||
|
branches:
|
||||||
#push:
|
- master
|
||||||
# tags:
|
tags:
|
||||||
# - '*'
|
- '*'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
publish:
|
publish:
|
||||||
name: Publish to PyPI
|
name: Publish to PyPI
|
||||||
runs-on: ubuntu-latest
|
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:
|
steps:
|
||||||
- name: Check out code
|
- 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
|
name: Publish Python package to TestPyPI
|
||||||
|
|
||||||
on:
|
on:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
push:
|
push:
|
||||||
tags:
|
tags:
|
||||||
- '*'
|
- '*'
|
||||||
|
Loading…
Reference in New Issue
Block a user