From 7365554a4b666c1962c69fdca8d04d0a2306cf3a Mon Sep 17 00:00:00 2001 From: Julio Mateos Langerak Date: Fri, 8 Sep 2023 12:33:21 +0200 Subject: [PATCH 1/3] changed github action release to publish on test pypi --- .github/workflows/pypi-publish.yaml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pypi-publish.yaml b/.github/workflows/pypi-publish.yaml index 512fb4bc..7ee8f239 100644 --- a/.github/workflows/pypi-publish.yaml +++ b/.github/workflows/pypi-publish.yaml @@ -33,8 +33,17 @@ jobs: - name: Build source and wheel archives run: poetry build - - name: Publish distribution 📦 to PyPI + - name: Publish distribution 📦 to Test PyPI uses: pypa/gh-action-pypi-publish@v1.2.2 with: + repository-url: https://test.pypi.org/legacy/ user: __token__ - password: ${{ secrets.PYPI_PASSWORD }} + password: ${{ secrets.TEST_PYPI_TOKEN }} + skip-existing: true + +# - name: Publish distribution 📦 to PyPI +# if: startsWith(github.ref, 'refs/tags/v') +# uses: pypa/gh-action-pypi-publish@v1.2.2 +# with: +# user: __token__ +# password: ${{ secrets.PYPI_TOKEN }} From 497bb2d0734e2e0c0b4b7910b8f73f54c6fcaac5 Mon Sep 17 00:00:00 2001 From: Julio Mateos Langerak Date: Fri, 8 Sep 2023 12:49:25 +0200 Subject: [PATCH 2/3] Fixed errors in publish action --- .github/workflows/pypi-publish.yaml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/pypi-publish.yaml b/.github/workflows/pypi-publish.yaml index 7ee8f239..25d27f53 100644 --- a/.github/workflows/pypi-publish.yaml +++ b/.github/workflows/pypi-publish.yaml @@ -36,10 +36,9 @@ jobs: - name: Publish distribution 📦 to Test PyPI uses: pypa/gh-action-pypi-publish@v1.2.2 with: - repository-url: https://test.pypi.org/legacy/ + repository_url: https://test.pypi.org/legacy/ user: __token__ password: ${{ secrets.TEST_PYPI_TOKEN }} - skip-existing: true # - name: Publish distribution 📦 to PyPI # if: startsWith(github.ref, 'refs/tags/v') From d12db7547b1a882e802390a151084b154504a54e Mon Sep 17 00:00:00 2001 From: Julio Mateos Langerak Date: Fri, 8 Sep 2023 13:11:24 +0200 Subject: [PATCH 3/3] Added publishing to pypi --- .github/workflows/pypi-publish.yaml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/pypi-publish.yaml b/.github/workflows/pypi-publish.yaml index 25d27f53..780a17d4 100644 --- a/.github/workflows/pypi-publish.yaml +++ b/.github/workflows/pypi-publish.yaml @@ -40,9 +40,9 @@ jobs: user: __token__ password: ${{ secrets.TEST_PYPI_TOKEN }} -# - name: Publish distribution 📦 to PyPI -# if: startsWith(github.ref, 'refs/tags/v') -# uses: pypa/gh-action-pypi-publish@v1.2.2 -# with: -# user: __token__ -# password: ${{ secrets.PYPI_TOKEN }} + - name: Publish distribution 📦 to PyPI + if: startsWith(github.ref, 'refs/tags/v') + uses: pypa/gh-action-pypi-publish@v1.2.2 + with: + user: __token__ + password: ${{ secrets.PYPI_TOKEN }}