Skip to content

Commit

Permalink
ci(python): make release idempotent (#1340)
Browse files Browse the repository at this point in the history
# Description

The docs release is stuck because the Linux wheel publication is
failing. The publication is failing because they already exist. We
should just continue if it already exists instead.

# Related Issue(s)
<!---
For example:

- closes #106
--->

# Documentation

<!---
Share links to useful documentation
--->
  • Loading branch information
wjones127 authored May 6, 2023
1 parent 65e709e commit 395d48b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/python_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ jobs:
with:
target: ${{ matrix.target }}
command: publish
args: -m python/Cargo.toml --no-sdist --universal2 ${{ env.FEATURES_FLAG }}
args: --skip-existing -m python/Cargo.toml --no-sdist --universal2 ${{ env.FEATURES_FLAG }}

release-pypi-windows:
needs: validate-release-tag
Expand All @@ -78,7 +78,7 @@ jobs:
with:
target: x86_64-pc-windows-msvc
command: publish
args: -m python/Cargo.toml --no-sdist ${{ env.FEATURES_FLAG }}
args: --skip-existing -m python/Cargo.toml --no-sdist ${{ env.FEATURES_FLAG }}

release-pypi-manylinux:
needs: validate-release-tag
Expand All @@ -94,7 +94,7 @@ jobs:
with:
target: x86_64-unknown-linux-gnu
command: publish
args: -m python/Cargo.toml ${{ env.FEATURES_FLAG }}
args: --skip-existing -m python/Cargo.toml ${{ env.FEATURES_FLAG }}

- name: Publish manylinux to pypi aarch64 (without sdist)
uses: messense/maturin-action@v1
Expand All @@ -103,7 +103,7 @@ jobs:
with:
target: aarch64-unknown-linux-gnu
command: publish
args: -m python/Cargo.toml --no-sdist ${{ env.FEATURES_FLAG }}
args: --skip-existing -m python/Cargo.toml --no-sdist ${{ env.FEATURES_FLAG }}

release-docs:
needs:
Expand Down

0 comments on commit 395d48b

Please sign in to comment.