diff --git a/.github/workflows/release_pypi.yml b/.github/workflows/release_pypi.yml index 9059d8b..ce9c9c2 100644 --- a/.github/workflows/release_pypi.yml +++ b/.github/workflows/release_pypi.yml @@ -31,24 +31,26 @@ jobs: run: | echo ::set-output name=version::$(curl -s https://pypi.org/pypi/music-tool-kit/json | python -c "import sys, json; print(json.load(sys.stdin)['info']['version'])") - # 如果version和curr_version相同退出工作流 - - name: Check version - if: ${{ steps.get_version.outputs.version }}==${{ steps.get_pypi_version.outputs.curr_version }} - env: - version: ${{ steps.get_version.outputs.version }} - curr_version: ${{ steps.get_pypi_version.outputs.version }} - run: | - echo $version - echo $curr_version - echo "version is same, exit" - exit 1 + # # 如果version和curr_version相同退出工作流 + # - name: Check version + # if: ${{ steps.get_version.outputs.version }}==${{ steps.get_pypi_version.outputs.curr_version }} + # env: + # version: ${{ steps.get_version.outputs.version }} + # curr_version: ${{ steps.get_pypi_version.outputs.version }} + # run: | + # echo $version + # echo $curr_version + # echo "version is same, exit" + # exit 1 - name: Install dependencies + if: ${{ steps.get_version.outputs.version }}!=${{ steps.get_pypi_version.outputs.curr_version }} run: | python -m pip install --upgrade pip pip install setuptools wheel twine - name: Build and publish + if: ${{ steps.get_version.outputs.version }}!=${{ steps.get_pypi_version.outputs.curr_version }} env: TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} diff --git a/setup.py b/setup.py index 8019ecd..ca37212 100644 --- a/setup.py +++ b/setup.py @@ -9,7 +9,7 @@ setup( name='music-tool-kit', version='0.2.5', - description='A tool kit for music download and clip', + description='A tool kit for music download and clip', long_description_content_type='text/markdown', long_description=readme, url='https://github.com/nichuanfang/music-tool-kit',