Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 12 additions & 6 deletions .github/workflows/release_python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,16 +87,19 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Install cargo-edit
- name: Install toml-cli
if: ${{ needs.validate-release-tag.outputs.is-rc == 'true' }}
run: cargo install cargo-edit
run: cargo install toml-cli

- name: Set cargo version for RC
if: ${{ needs.validate-release-tag.outputs.is-rc == 'true' }}
working-directory: "bindings/python"
run: |
echo "Setting cargo version to: ${{ needs.validate-release-tag.outputs.cargo-version }}"
cargo set-version ${{ needs.validate-release-tag.outputs.cargo-version }}
toml set Cargo.toml package.version ${{ needs.validate-release-tag.outputs.cargo-version }} > Cargo.toml.tmp
# doing this explicitly to avoid issue in Windows where `mv` does not overwrite existing file
rm Cargo.toml
mv Cargo.toml.tmp Cargo.toml

- uses: PyO3/maturin-action@v1
with:
Expand Down Expand Up @@ -127,16 +130,19 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Install cargo-edit
- name: Install toml-cli
if: ${{ needs.validate-release-tag.outputs.is-rc == 'true' }}
run: cargo install cargo-edit
run: cargo install toml-cli

- name: Set cargo version for RC
if: ${{ needs.validate-release-tag.outputs.is-rc == 'true' }}
working-directory: "bindings/python"
run: |
echo "Setting cargo version to: ${{ needs.validate-release-tag.outputs.cargo-version }}"
cargo set-version ${{ needs.validate-release-tag.outputs.cargo-version }}
toml set Cargo.toml package.version ${{ needs.validate-release-tag.outputs.cargo-version }} > Cargo.toml.tmp
# doing this explicitly to avoid issue in Windows where `mv` does not overwrite existing file
rm Cargo.toml
mv Cargo.toml.tmp Cargo.toml

- uses: actions/setup-python@v5
with:
Expand Down
Loading