Skip to content

Commit

Permalink
sd
Browse files Browse the repository at this point in the history
  • Loading branch information
nichuanfang committed Oct 11, 2023
1 parent 9ecac10 commit cce2a38
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 12 deletions.
24 changes: 13 additions & 11 deletions .github/workflows/release_pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit cce2a38

Please sign in to comment.