Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/build_wheel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@ jobs:
- name: Install pypa/build
run: pip install build
- name: Clone pathwaysutils from tag
if: github.event_name == 'worfklow_dispatch'
if: github.event_name == 'workflow_dispatch'
run: git clone --branch=${{inputs.tag}} https://github.com/AI-Hypercomputer/pathways-utils.git
- name: Enter directory
if: github.event_name == 'worfklow_dispatch'
if: github.event_name == 'workflow_dispatch'
run: cd pathways-utils
- name: Build a binary wheel and a source tarball
run: python3 -m build
Expand All @@ -55,7 +55,7 @@ jobs:
path: dist/

publish-to-testpypi:
if: ${{inputs.testpypi}} == true
if: inputs.testpypi
name: Publish Python distribution to TestPyPI
needs:
- build
Expand All @@ -79,7 +79,7 @@ jobs:

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