From b48c3cb4ddd74fb1b7f53bef25e22301cf8cf1b3 Mon Sep 17 00:00:00 2001 From: Philip Hackstock <20710924+phackstock@users.noreply.github.com> Date: Thu, 10 Aug 2023 17:31:33 +0200 Subject: [PATCH] Enable using trusted publisher --- .github/workflows/publish_test.yaml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/publish_test.yaml b/.github/workflows/publish_test.yaml index 33877a02..b8aedf0c 100644 --- a/.github/workflows/publish_test.yaml +++ b/.github/workflows/publish_test.yaml @@ -33,13 +33,13 @@ jobs: installer-parallel: true - name: Install poetry dynamic versioning plugin run: poetry self add "poetry-dynamic-versioning[plugin]" - - name: Register test pypi - run: poetry config repositories.test-pypi https://test.pypi.org/legacy/ + - name: Build package + run: poetry build - if: github.event_name == 'release' - name: Build & publish ixmp4 to pypi - run: poetry publish --build + name: Publish distribution to PyPI + uses: pypa/gh-action-pypi-publish@release/v1 - if: github.event_name != 'release' - name: Build & publish ixmp4 to testpypi - run: poetry publish --build -r test-pypi - - + name: Publish distribution to Test PyPI + uses: pypa/gh-action-pypi-publish@release/v1 + with: + repository-url: https://test.pypi.org/legacy/