Skip to content

Commit

Permalink
Update upload_pypi.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
svkeerthy authored Feb 28, 2024
1 parent 816d614 commit 74dd4e1
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions .github/workflows/upload_pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ on:
workflow_dispatch:
inputs:
pypi_repo:
description: 'Repo to upload to (testpypi or pypi)'
default: 'testpypi'
description: 'Repo to upload to pypi'
default: 'pypi'
required: true
type: choice
options:
Expand All @@ -33,15 +33,15 @@ jobs:
name: artifact
path: ./CompilerInterface/dist

- name: Publish package to TestPyPI
uses: pypa/gh-action-pypi-publish@v1.8.5
with:
repository-url: https://test.pypi.org/legacy/
packages-dir: ./CompilerInterface/dist
if: ${{ github.event.inputs.pypi_repo != 'pypi' }}

# - name: Publish package to PyPI
# - name: Publish package to TestPyPI
# uses: pypa/gh-action-pypi-publish@v1.8.5
# with:
# repository-url: https://upload.pypi.org/legacy/
# if: ${{ github.event.inputs.pypi_repo == 'pypi' }}
# repository-url: https://test.pypi.org/legacy/
# packages-dir: ./CompilerInterface/dist
# if: ${{ github.event.inputs.pypi_repo != 'pypi' }}

- name: Publish package to PyPI
uses: pypa/gh-action-pypi-publish@v1.8.5
with:
repository-url: https://upload.pypi.org/legacy/
if: ${{ github.event.inputs.pypi_repo == 'pypi' }}

0 comments on commit 74dd4e1

Please sign in to comment.