Skip to content

Commit

Permalink
add skip exist
Browse files Browse the repository at this point in the history
  • Loading branch information
Mr-Milk committed Sep 29, 2022
1 parent 46d42e7 commit c10c012
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,14 @@ jobs:
- name: Build the package
run: poetry build
- name: Publish dry run
run: poetry publish --dry-run
run: poetry publish --dry-run --skip-existing
env:
POETRY_HTTP_BASIC_PYPI_USERNAME: ${{ secrets.PYPI_USERNAME }}
POETRY_HTTP_BASIC_PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }}

- name: Publish to pypi
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v')
run: poetry publish
run: poetry publish --skip-existing
env:
POETRY_HTTP_BASIC_PYPI_USERNAME: ${{ secrets.PYPI_USERNAME }}
POETRY_HTTP_BASIC_PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }}

0 comments on commit c10c012

Please sign in to comment.