Skip to content

Commit

Permalink
ci: dry run publish on rc tags for python binding (#3645)
Browse files Browse the repository at this point in the history
ci: dry run on rc tags for python binding
  • Loading branch information
everpcpc authored Nov 22, 2023
1 parent 26ae6d0 commit 0b3505b
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/bindings_python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ jobs:
release:
name: Release
runs-on: ubuntu-latest
if: "startsWith(github.ref, 'refs/tags/') && !contains(github.ref, '-')"
if: "startsWith(github.ref, 'refs/tags/')"
permissions:
contents: read
id-token: write
Expand All @@ -123,7 +123,16 @@ jobs:
with:
name: wheels
path: bindings/python/dist
- uses: pypa/gh-action-pypi-publish@release/v1
- name: Publish to TestPyPI
uses: pypa/gh-action-pypi-publish@release/v1
if: "contains(github.ref, '-')"
with:
repository-url: https://test.pypi.org/legacy/
skip-existing: true
packages-dir: bindings/python/dist
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
if: "!contains(github.ref, '-')"
with:
skip-existing: true
packages-dir: bindings/python/dist

0 comments on commit 0b3505b

Please sign in to comment.