From 134f1606e35506b1272f5538f40aac1daa1c27a8 Mon Sep 17 00:00:00 2001 From: ylfeng Date: Tue, 16 Aug 2022 00:18:47 +0800 Subject: [PATCH] :art: fix release --- .github/workflows/ci.yml | 10 +++++----- README.md | 4 ++-- rust/ltp/README.md | 9 +++++++++ 3 files changed, 16 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1cc4e17e..4ce3bb3f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -161,8 +161,8 @@ jobs: release: name: Release runs-on: ubuntu-latest - if: "startsWith(github.ref, 'refs/tags_or_path/')" - needs: [macos, windows, linux] + if: "startsWith(github.ref, 'refs/tags/')" + needs: [macos, windows, linux, core] steps: - uses: actions/download-artifact@v2 with: @@ -177,18 +177,18 @@ jobs: TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD_CORE }} run: | pip install --upgrade twine - twine upload --skip-existing dist/ltp_core-* + twine upload --skip-existing ltp_core-* - name: Publish LTP Extension to PyPi env: TWINE_USERNAME: __token__ TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD_EXT }} run: | - twine upload --skip-existing dist/ltp_extension-* + twine upload --skip-existing ltp_extension-* - name: Publish LTP to PyPi env: TWINE_USERNAME: __token__ TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} run: | - twine upload --skip-existing dist/ltp-* + twine upload --skip-existing ltp-* diff --git a/README.md b/README.md index 15a2f1f0..6902dde3 100644 --- a/README.md +++ b/README.md @@ -4,8 +4,8 @@ | Language | version | | -------- | --------------------------------------------------------------------------------------------- | -| Python | [![LTP](https://img.shields.io/pypi/v/ltp?label=LTP4%20ALPHA)](https://pypi.org/project/ltp/) | -| Rust | | +| Python | [![LTP](https://img.shields.io/pypi/v/ltp?label=LTP4%20ALPHA)](https://pypi.org/project/ltp) | +| Rust | [![LTP](https://img.shields.io/crates/d/ltp?label=LTP%20Alpha)](https://crates.io/crates/ltp) | # LTP 4 diff --git a/rust/ltp/README.md b/rust/ltp/README.md index 082d5479..21423318 100644 --- a/rust/ltp/README.md +++ b/rust/ltp/README.md @@ -1,3 +1,12 @@ +![CODE SIZE](https://img.shields.io/github/languages/code-size/HIT-SCIR/ltp) +![CONTRIBUTORS](https://img.shields.io/github/contributors/HIT-SCIR/ltp) +![LAST COMMIT](https://img.shields.io/github/last-commit/HIT-SCIR/ltp) + +| Language | version | +| -------- | --------------------------------------------------------------------------------------------- | +| Python | [![LTP](https://img.shields.io/pypi/v/ltp?label=LTP4%20ALPHA)](https://pypi.org/project/ltp) | +| Rust | [![LTP](https://img.shields.io/crates/d/ltp?label=LTP%20Alpha)](https://crates.io/crates/ltp) | + # LTP For Rust 传统机器学习方法(LTP 3)实现的 CWS / POS / NER 算法。