From 984cea5affe247f5742825fbf2da5c4e45b9efbe Mon Sep 17 00:00:00 2001 From: Andrew Beveridge Date: Sun, 26 Jan 2025 14:34:52 -0500 Subject: [PATCH] Updated GHA to fix python release --- .../{deploy.yml => deploy-analyzer.yml} | 2 +- .github/workflows/publish-transcriber.yml | 19 +++++++++++++++++++ pyproject.toml | 2 +- 3 files changed, 21 insertions(+), 2 deletions(-) rename .github/workflows/{deploy.yml => deploy-analyzer.yml} (96%) create mode 100644 .github/workflows/publish-transcriber.yml diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy-analyzer.yml similarity index 96% rename from .github/workflows/deploy.yml rename to .github/workflows/deploy-analyzer.yml index 7d62cc5..7c9b12a 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy-analyzer.yml @@ -1,4 +1,4 @@ -name: Deploy to GitHub Pages +name: Deploy lyrics-analyzer to GitHub Pages on: push: diff --git a/.github/workflows/publish-transcriber.yml b/.github/workflows/publish-transcriber.yml new file mode 100644 index 0000000..5584d23 --- /dev/null +++ b/.github/workflows/publish-transcriber.yml @@ -0,0 +1,19 @@ +name: Publish lyrics-transcriber to PyPI + +on: [push, workflow_dispatch] + +jobs: + # Auto-publish when version is increased + publish-job: + # Only publish on `main` branch + if: github.ref == 'refs/heads/main' + runs-on: ubuntu-latest + permissions: # Don't forget permissions + contents: write + + steps: + - uses: etils-actions/pypi-auto-publish@v1 + with: + pypi-token: ${{ secrets.PYPI_API_TOKEN }} + gh-token: ${{ secrets.GITHUB_TOKEN }} + parse-changelog: false \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index 5011694..daad527 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "lyrics-transcriber" -version = "0.32.0" +version = "0.32.1" description = "Automatically create synchronised lyrics files in ASS and MidiCo LRC formats with word-level timestamps, using Whisper and lyrics from Genius and Spotify" authors = ["Andrew Beveridge "] license = "MIT"