Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 75d9992

Browse files
authoredApr 21, 2022
Updated Github Action Workflow
Boolean input is currently broken in GitHub Actions. Some code needs to be re-enabled when this is addressed by Git.
1 parent e0a638c commit 75d9992

File tree

1 file changed

+13
-11
lines changed

1 file changed

+13
-11
lines changed
 

‎.github/workflows/python-publish.yml

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,13 @@ name: Upload Python Package to PyPI
1010

1111
on:
1212
workflow_dispatch:
13-
inputs:
14-
isTest:
15-
description: Should the package be pushed to TestPyPI?
16-
type: boolean
17-
required: false
18-
default: false
13+
# Right now, boolean inputs are broken. this can be reenabled when this is fixed
14+
# inputs:
15+
# isTest:
16+
# description: Should the package be pushed to TestPyPI?
17+
# type: boolean
18+
# required: false
19+
# default: false
1920

2021
jobs:
2122
build-and-publish:
@@ -47,8 +48,9 @@ jobs:
4748
with:
4849
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
4950
repository_url: https://test.pypi.org/legacy/
50-
- name: Publish distribution to PyPI
51-
if: ${{ !github.event.inputs.isTest }} && startsWith(github.ref, 'refs/tags')
52-
uses: pypa/gh-action-pypi-publish@master
53-
with:
54-
password: ${{ secrets.PYPI_API_TOKEN }}
51+
# Enable when ready to publish straight to PyPI
52+
# - name: Publish distribution to PyPI
53+
# if: ${{ !github.event.inputs.isTest }} && startsWith(github.ref, 'refs/tags')
54+
# uses: pypa/gh-action-pypi-publish@master
55+
# with:
56+
# password: ${{ secrets.PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)
Please sign in to comment.