From a627bf160aca9feac691fb5c37d501fdef4f8770 Mon Sep 17 00:00:00 2001 From: sundyli <543950155@qq.com> Date: Fri, 12 May 2023 19:06:15 -0700 Subject: [PATCH] Update bindings_python.yml --- .github/workflows/bindings_python.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/bindings_python.yml b/.github/workflows/bindings_python.yml index ae1ab588a29bc..2a42562198f1f 100644 --- a/.github/workflows/bindings_python.yml +++ b/.github/workflows/bindings_python.yml @@ -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 @@ -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 }}