Skip to content

Commit

Permalink
ci: Fix PyPI release with latest maturin
Browse files Browse the repository at this point in the history
  • Loading branch information
stinodego committed Mar 7, 2024
1 parent ed3502d commit 62f187a
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -199,30 +199,30 @@ jobs:

- name: Publish to PyPI
if: inputs.dry-run == false
uses: pypa/gh-action-pypi-publish@release/v1
uses: pypa/gh-action-pypi-publish@release/v1.8.11
with:
skip-existing: true
verbose: true

publish-to-crates-io:
needs: [create-sdist, build-wheels]
environment:
name: release
url: https://crates.io/crates/polars-cli
runs-on: ubuntu-latest
# publish-to-crates-io:
# needs: [create-sdist, build-wheels]
# environment:
# name: release
# url: https://crates.io/crates/polars-cli
# runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
with:
ref: ${{ inputs.sha }}
# steps:
# - uses: actions/checkout@v4
# with:
# ref: ${{ inputs.sha }}

- name: Publish to crates.io
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
run: cargo publish ${{ inputs.dry-run && '--dry-run' || '' }}
# - name: Publish to crates.io
# env:
# CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
# run: cargo publish ${{ inputs.dry-run && '--dry-run' || '' }}

publish-to-github:
needs: [publish-to-pypi, publish-to-crates-io, get-version]
needs: [publish-to-pypi, get-version]
environment:
name: release
url: https://github.com/pola-rs/polars-cli/releases
Expand Down

0 comments on commit 62f187a

Please sign in to comment.