From 36328f4592cc3b1054fbc411a3c1d66ace485993 Mon Sep 17 00:00:00 2001 From: "Nicolas GRUEL (ANEO)" Date: Mon, 22 Jan 2024 15:10:07 +0100 Subject: [PATCH] chore: remove pre-version package to be published on Pypi website The pre-version should be available only on https://test.pypi.org --- .github/workflows/publish-edge.yml | 8 -------- .github/workflows/release.yml | 9 +++++++++ 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/.github/workflows/publish-edge.yml b/.github/workflows/publish-edge.yml index 5bcafacd1..4b505ae85 100644 --- a/.github/workflows/publish-edge.yml +++ b/.github/workflows/publish-edge.yml @@ -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: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0a6735fba..ce64a8890 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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: