From 6824ecbc358aef2ca3c6151d01e66ecaed8d58a6 Mon Sep 17 00:00:00 2001 From: 2061360308 <2061360308@qq.com> Date: Wed, 20 Dec 2023 00:23:36 +0800 Subject: [PATCH] chore:update publish.yml --- .bumpversion.cfg | 4 ++-- .github/workflows/publish.yml | 2 ++ package/NeteaseCloudMusic/__init__.py | 2 +- package/setup.py | 2 +- 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.bumpversion.cfg b/.bumpversion.cfg index 790b763..1fd20bf 100644 --- a/.bumpversion.cfg +++ b/.bumpversion.cfg @@ -1,8 +1,8 @@ [bumpversion] -current_version = 0.1.8 +current_version = 0.1.7 commit = True tag = True [bumpversion:file:package/setup.py] -[bumpversion:file:package/NeteaseCloudMusic/__init__.py] +[bumpversion:file:package/NeteaseCloudMusic/__init__.py] \ No newline at end of file diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index a51e711..2a36680 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -23,6 +23,7 @@ jobs: id: get_version run: | echo "VERSION=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_ENV + echo ${{ env.VERSION }} - name: Install dependencies run: | @@ -51,6 +52,7 @@ jobs: TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }} - name: Create Release + id: create_release uses: actions/create-release@v1 env: GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }} diff --git a/package/NeteaseCloudMusic/__init__.py b/package/NeteaseCloudMusic/__init__.py index 91e4dfd..18f2766 100644 --- a/package/NeteaseCloudMusic/__init__.py +++ b/package/NeteaseCloudMusic/__init__.py @@ -2,4 +2,4 @@ from .main import NeteaseCloudMusicApi from .help import api_help, api_list from .utils import format_cookie_str, prase_cookie_str -__version__ = '0.1.8' +__version__ = '0.1.7' diff --git a/package/setup.py b/package/setup.py index 2b2b7b7..bc0eff1 100644 --- a/package/setup.py +++ b/package/setup.py @@ -19,7 +19,7 @@ URL = 'https://github.com/2061360308/NeteaseCloudMusic_PythonSDK' EMAIL = '2061360308@qq.com' AUTHOR = '盧瞳' REQUIRES_PYTHON = '>=3.6.0' -VERSION = '0.1.8' +VERSION = '0.1.7' UPDATA_INFO = ('修复了初次使用时没有cookie导致的一系列问题\n' '修复了NeteaseCloudMusicApi.js没有更新的问题\n' '添加了对于cookie的判断,现在可以正常判断cookie是否过期了')