Skip to content

Commit

Permalink
chore: remove pre-version package to be published on Pypi website
Browse files Browse the repository at this point in the history
The pre-version should be available only on https://test.pypi.org
  • Loading branch information
ngruelaneo committed Jan 22, 2024
1 parent 8f722fd commit 36328f4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
8 changes: 0 additions & 8 deletions .github/workflows/publish-edge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -225,14 +225,6 @@ jobs:
packages-dir: packages/python/pkg/
repository-url: https://test.pypi.org/legacy/

- name: Publish to PyPI
if: github.ref == 'refs/heads/main'
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}
print-hash: true
packages-dir: packages/python/pkg/

release-cpp-package:
needs: [version]
strategy:
Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,15 @@ jobs:
name: python-packages
path: packages/python/pkg/

- name: Publish to PyPITest
if: github.ref != 'refs/heads/main'
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.DEV_PYPI_API_TOKEN }}
print-hash: true
packages-dir: packages/python/pkg/
repository-url: https://test.pypi.org/legacy/

- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
Expand Down

0 comments on commit 36328f4

Please sign in to comment.