diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a2858d071..dbc9314d5 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -15,6 +15,7 @@ jobs: outputs: pypi_env: ${{ github.event_name == 'push' && 'pypi' || 'test-pypi' }} pypi_url: ${{ github.event_name == 'push' && 'https://upload.pypi.org/legacy/' || 'https://test.pypi.org/legacy/' }} + skip_duplicates: ${{ github.event_name == 'push' && 'false' || 'true' }} steps: - name: Set publishing variables run: echo "Publishing setup complete" @@ -166,6 +167,8 @@ jobs: uses: pypa/gh-action-pypi-publish@release/v1 with: repository-url: ${{ needs.setup.outputs.pypi_url }} + skip-existing: ${{ needs.setup.outputs.skip_duplicates }} + print-hash: true pypi-publish-cuda: name: Upload CUDA release to PyPI @@ -187,6 +190,8 @@ jobs: uses: pypa/gh-action-pypi-publish@release/v1 with: repository-url: ${{ needs.setup.outputs.pypi_url }} + skip-existing: ${{ needs.setup.outputs.skip_duplicates }} + print-hash: true pypi-publish-cpu: name: Upload CPU release to PyPI @@ -208,6 +213,8 @@ jobs: uses: pypa/gh-action-pypi-publish@release/v1 with: repository-url: ${{ needs.setup.outputs.pypi_url }} + skip-existing: ${{ needs.setup.outputs.skip_duplicates }} + print-hash: true pypi-publish-metal: name: Upload Metal release to PyPI @@ -229,4 +236,5 @@ jobs: uses: pypa/gh-action-pypi-publish@release/v1 with: repository-url: ${{ needs.setup.outputs.pypi_url }} - + skip-existing: ${{ needs.setup.outputs.skip_duplicates }} + print-hash: true