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

View File

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