From 2901ab628b434bcd32c9212ac695be42ac7916d7 Mon Sep 17 00:00:00 2001 From: 2061360308 <2061360308@qq.com> Date: Wed, 20 Dec 2023 00:31:39 +0800 Subject: [PATCH] chore:update publish.yml --- .bumpversion.cfg | 2 +- .github/workflows/publish.yml | 3 ++- package/NeteaseCloudMusic/__init__.py | 2 +- package/setup.py | 2 +- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.bumpversion.cfg b/.bumpversion.cfg index 790b763..7760714 100644 --- a/.bumpversion.cfg +++ b/.bumpversion.cfg @@ -1,5 +1,5 @@ [bumpversion] -current_version = 0.1.8 +current_version = 0.1.7 commit = True tag = True diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 2033c61..8606306 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -22,12 +22,13 @@ jobs: - name: Get the version id: get_version run: | - echo "VERSION=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_ENV + echo "VERSION=${GITHUB_REF/refs\/tags\/v/}" >> $GITHUB_ENV - name: Print the version run: | echo ${{ env.VERSION }} echo ${{ github.ref }} + ls ./package/dist/ - name: Install dependencies run: | 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是否过期了')