Skip to content

Commit

Permalink
Add skip existing
Browse files Browse the repository at this point in the history
  • Loading branch information
CTY-git committed Apr 9, 2024
1 parent 9442104 commit 32208b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 32208b3

Please sign in to comment.