From dac13d0737798692ff12b5e845e994d54db80882 Mon Sep 17 00:00:00 2001 From: James Ding Date: Fri, 13 Feb 2026 01:26:26 -0800 Subject: [PATCH 1/2] feat: add release-please configuration and version manifest --- .github/workflows/python.yml | 19 +++++++++++++++++-- .release-please-manifest.json | 3 +++ release-please-config.json | 11 +++++++++++ src/fishaudio/_version.py | 2 +- 4 files changed, 32 insertions(+), 3 deletions(-) create mode 100644 .release-please-manifest.json create mode 100644 release-please-config.json diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index 7cd3722..3186329 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -103,11 +103,26 @@ jobs: name: dist path: dist/ + release-please: + name: Release Please + runs-on: ubuntu-latest + needs: [lint, type-check, test, integration, build] + if: github.ref == 'refs/heads/main' && github.event_name == 'push' + permissions: + contents: write + pull-requests: write + issues: write + outputs: + release_created: ${{ steps.release.outputs.release_created }} + steps: + - uses: googleapis/release-please-action@v4 + id: release + publish: name: Publish to PyPI runs-on: ubuntu-latest - needs: [lint, type-check, test, integration, build] - if: startsWith(github.ref, 'refs/tags/') + needs: [release-please] + if: needs.release-please.outputs.release_created == 'true' environment: release permissions: id-token: write diff --git a/.release-please-manifest.json b/.release-please-manifest.json new file mode 100644 index 0000000..d0ab664 --- /dev/null +++ b/.release-please-manifest.json @@ -0,0 +1,3 @@ +{ + ".": "1.2.0" +} \ No newline at end of file diff --git a/release-please-config.json b/release-please-config.json new file mode 100644 index 0000000..5aeb284 --- /dev/null +++ b/release-please-config.json @@ -0,0 +1,11 @@ +{ + "packages": { + ".": { + "release-type": "python", + "package-name": "fish-audio-sdk", + "extra-files": [ + "src/fishaudio/_version.py" + ] + } + } +} \ No newline at end of file diff --git a/src/fishaudio/_version.py b/src/fishaudio/_version.py index 406c6fc..d5698dd 100644 --- a/src/fishaudio/_version.py +++ b/src/fishaudio/_version.py @@ -1,3 +1,3 @@ """Version information.""" -__version__ = "1.2.0" +__version__ = "1.2.0" # x-release-please-version From 760d6a6d8906a2497624fe463a5079871f60c8e1 Mon Sep 17 00:00:00 2001 From: James Ding Date: Fri, 13 Feb 2026 01:30:59 -0800 Subject: [PATCH 2/2] chore: update release-please job dependencies to only require build --- .github/workflows/python.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index 3186329..8b8ab3d 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -106,7 +106,7 @@ jobs: release-please: name: Release Please runs-on: ubuntu-latest - needs: [lint, type-check, test, integration, build] + needs: [build] if: github.ref == 'refs/heads/main' && github.event_name == 'push' permissions: contents: write