From 32208b3d0a1fe30b7a5456b1b29d267db52c0c05 Mon Sep 17 00:00:00 2001 From: TIANYOU CHEN <42710806+CTY-git@users.noreply.github.com> Date: Tue, 9 Apr 2024 16:53:18 +0800 Subject: [PATCH] Add skip existing --- .github/workflows/release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5c06272b..b5bda78b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -34,12 +34,12 @@ jobs: id: "publish-to-test-pypi" run: | poetry config repositories.test "https://test.pypi.org/legacy/" - poetry publish --build --repository test --username '__token__' --password ${{ secrets.TEST_PYPI_PASSWORD }} + poetry publish --skip-existing --build --repository test --username '__token__' --password ${{ secrets.TEST_PYPI_PASSWORD }} - name: Deploy to pypi id: "publish-to-pypi" if: steps.publish-to-test-pypi.outcome == 'success' - run: poetry publish --username '__token__' --password ${{ secrets.PYPI_PASSWORD }} + run: poetry publish --skip-existing --username '__token__' --password ${{ secrets.PYPI_PASSWORD }} - name: Store the distribution packages uses: actions/upload-artifact@v3