From 61096e82e506810675f74828cc86121e4cc8e0ef Mon Sep 17 00:00:00 2001 From: Xoconoch Date: Tue, 3 Jun 2025 14:05:41 -0600 Subject: [PATCH] 1.3.0 --- .github/workflows/publish-to-pypi.yml | 15 +++++++++++++++ pyproject.toml | 2 +- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish-to-pypi.yml b/.github/workflows/publish-to-pypi.yml index 1a32f77..b84cd2a 100644 --- a/.github/workflows/publish-to-pypi.yml +++ b/.github/workflows/publish-to-pypi.yml @@ -17,6 +17,21 @@ jobs: with: python-version: "3.x" + - name: Update version in files + run: | + TAG_VERSION="${{ github.ref_name }}" + # Remove 'v' prefix if it exists + VERSION="${TAG_VERSION#v}" + echo "Using version: $VERSION" + # Update pyproject.toml + sed -i "s/^version = .*/version = \"${VERSION}\"/" pyproject.toml + # Update setup.py + sed -i "s/^\s*version = .*/ version = \"${VERSION}\",/" setup.py + echo "pyproject.toml version:" + grep "^version = " pyproject.toml + echo "setup.py version:" + grep "^\s*version = " setup.py + - name: Install pypa/build run: >- python -m diff --git a/pyproject.toml b/pyproject.toml index 4bab86c..e5ae911 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "deezspot-spotizerr" -version = "1.1" +version = "1.2.0" description = "Downloads songs, albums or playlists from deezer and spotify (clone from deezloader)" readme = "README.md" requires-python = ">=3.10"