From 201db60400b19c321e3d62f7cbc792f6f27f33c6 Mon Sep 17 00:00:00 2001 From: Lucas PASCAL Date: Tue, 30 May 2023 10:18:49 +0200 Subject: [PATCH] [ci][add] Always deploy on test.pypi.org, weither from a merge or a tag --- .github/workflows/ci.yml | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e444e22..2284f04 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,11 +7,9 @@ on: - '*' branches: - master - - develop pull_request: branches: - master - - develop jobs: build_install_test: @@ -86,10 +84,7 @@ jobs: fi - name: Publish Python package on test.pypi.org - if: | - success() && - github.event_name == 'push' && - !startsWith(github.ref, 'refs/tags/') + if: success() && github.event_name == 'push' run: python -m twine upload --repository testpypi dist/* env: TWINE_USERNAME: __token__ @@ -97,10 +92,7 @@ jobs: TWINE_NON_INTERACTIVE: 1 - name: Publish Python package on pypi.org - if: | - success() && - github.event_name == 'push' && - startsWith(github.ref, 'refs/tags/') + if: success() && github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') run: python -m twine upload dist/* env: TWINE_USERNAME: __token__