Ensure we only react to push onto master; disable via if clause

This commit is contained in:
Dominik Moritz Roth 2023-10-29 14:37:30 +01:00
parent 707ec08808
commit 3c7df90810
2 changed files with 8 additions and 6 deletions

View File

@ -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

View File

@ -1,6 +1,8 @@
name: Publish Python package to TestPyPI
on:
branches:
- master
push:
tags:
- '*'