Skip to content

Commit 0311764

Browse files
authored
Update the github action so that publishing to testpypi does not also publish to pypi. (#105)
1 parent 2609b1f commit 0311764

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/build_wheel.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@ jobs:
4141
- name: Install pypa/build
4242
run: pip install build
4343
- name: Clone pathwaysutils from tag
44-
if: github.event_name == 'worfklow_dispatch'
44+
if: github.event_name == 'workflow_dispatch'
4545
run: git clone --branch=${{inputs.tag}} https://github.com/AI-Hypercomputer/pathways-utils.git
4646
- name: Enter directory
47-
if: github.event_name == 'worfklow_dispatch'
47+
if: github.event_name == 'workflow_dispatch'
4848
run: cd pathways-utils
4949
- name: Build a binary wheel and a source tarball
5050
run: python3 -m build
@@ -55,7 +55,7 @@ jobs:
5555
path: dist/
5656

5757
publish-to-testpypi:
58-
if: ${{inputs.testpypi}} == true
58+
if: inputs.testpypi
5959
name: Publish Python distribution to TestPyPI
6060
needs:
6161
- build
@@ -79,7 +79,7 @@ jobs:
7979

8080
publish-to-pypi:
8181
name: Publish Python distribution to PyPI
82-
if: startsWith(github.ref, 'refs/tags/') # only publish to PyPI on tag pushes
82+
if: !inputs.testpypi && startsWith(github.ref, 'refs/tags/') # only publish to PyPI on tag pushes
8383
needs:
8484
- build
8585
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)