From 45092ff69279a463bc84fee2c958948b036f8f48 Mon Sep 17 00:00:00 2001 From: Arisu Tachibana Date: Thu, 26 Dec 2024 11:00:39 +0900 Subject: [PATCH] pypi-publish: Publish to PyPI only on release publication on production PyPI is possible to use dev release version for adding project testing development release This is making PyPI testing repository not needed anymore Signed-off-by: Arisu Tachibana --- .github/workflows/pypi-publish.yml | 5 ++--- .github/workflows/pypi-test.yml | 21 --------------------- 2 files changed, 2 insertions(+), 24 deletions(-) delete mode 100644 .github/workflows/pypi-test.yml diff --git a/.github/workflows/pypi-publish.yml b/.github/workflows/pypi-publish.yml index 99d22d7..3c33e25 100644 --- a/.github/workflows/pypi-publish.yml +++ b/.github/workflows/pypi-publish.yml @@ -1,9 +1,8 @@ name: Publish package to PyPI on: - push: - tags: - - "v*.*.*" + release: + types: [published] jobs: pypi_publish: diff --git a/.github/workflows/pypi-test.yml b/.github/workflows/pypi-test.yml deleted file mode 100644 index 4a91b89..0000000 --- a/.github/workflows/pypi-test.yml +++ /dev/null @@ -1,21 +0,0 @@ -name: Publish package to test.pypi - -on: - push: - tags: - - "v*.*.*.dev*" - - "v*.*.*.post*" - - "v*.*.*.rc*" - - "v*.*.*.a*" - - "v*.*.*.b*" - -jobs: - pypi_test_publish: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: JRubics/poetry-publish@v2.0 - with: - pypi_token: ${{ secrets.TEST_PYPI_TOKEN }} - repository_name: "testpypi" - repository_url: "https://test.pypi.org/legacy/"