summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Heimes <christian@python.org>2022-07-14 12:21:18 +0200
committerChristian Heimes <christian@python.org>2022-08-02 14:27:31 +0200
commitb329168bfd594b182ba86b2acbc1840357ca15e0 (patch)
tree8d07d47975a258b155d89edc2b832e29e4ee43ec
parent041aa121234936f4f7c225e92c43d622769c12e3 (diff)
downloaddefusedxml-git-gha-deploy-fix.tar.gz
Fix deploy workflowgha-deploy-fix
-rw-r--r--.github/workflows/pypi.yml7
1 files changed, 4 insertions, 3 deletions
diff --git a/.github/workflows/pypi.yml b/.github/workflows/pypi.yml
index 296e64b..8794898 100644
--- a/.github/workflows/pypi.yml
+++ b/.github/workflows/pypi.yml
@@ -25,6 +25,7 @@ on:
- main
- v*.x
pull_request:
+
branches:
- master
- main
@@ -38,7 +39,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v3
with:
- ref: ${{ github.event.inputs.tag || github.ref }}
+ ref: ${{ inputs.tag || github.ref }}
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
@@ -56,9 +57,9 @@ jobs:
with:
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
repository_url: https://test.pypi.org/legacy/
- if: github.event.inputs.testpypi == true
+ if: inputs.testpypi || false
- name: Publish distribution to PyPI
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.PYPI_API_TOKEN }}
- if: github.event.inputs.pypi == true
+ if: inputs.pypi || false