Skip to content

Commit

Permalink
Update bindings_python.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
sundy-li authored May 13, 2023
1 parent bee401e commit a627bf1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/bindings_python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,15 @@ jobs:
bypass_env_vars: RUSTFLAGS,RUST_LOG

- name: Generate version
working-directory: src/bendpy
run: |
# GIT_TAG=`git describe --tags --abbrev=0`
GIT_TAG="1.1.33"
echo "LATEST TAG $GIT_TAG"
sed -i "s#0.1.2#$GIT_TAG#g" src/bendpy/cargo.toml
cd src/bendpy
sed -i "s#0.1.2#$GIT_TAG#g" cargo.toml
- name: Build wheels
working-directory: src/bendpy
uses: PyO3/maturin-action@v1
env:
RUST_BACKTRACE: 1
Expand All @@ -48,6 +49,7 @@ jobs:
args: --release --strip --manylinux 2014 --sdist --out dist

- name: Publish package to PyPI
working-directory: src/bendpy
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}
Expand Down

0 comments on commit a627bf1

Please sign in to comment.