diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ccb7c57..76e7f69 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -30,3 +30,25 @@ jobs: - run: poetry run pyright sachi/ - run: poetry run ruff check sachi/ if: always() + + release: + runs-on: ubuntu-latest + if: startsWith(github.ref, 'refs/tags/') + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + - uses: actions/setup-python@v5 + with: + python-version: "3.12" + - run: | + pip install poetry + poetry publish --build + env: + POETRY_PYPI_TOKEN_PYPI: ${{ secrets.POETRY_PYPI_TOKEN_PYPI }} + - run: | + gh release create ${{ github.ref_name }} dist/* \ + --generate-notes \ + --notes-start-tag $(git tag --sort -v:refname | head -n2 | tail -n1) + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/README.md b/README.md index d158cd0..2c2b166 100644 --- a/README.md +++ b/README.md @@ -8,11 +8,15 @@ Sachi is a TV Series and Movie TUI renamer made with [Textual](https://github.co **Requirements:** Python 3.12 and [mediainfo](https://mediaarea.net/en/MediaInfo) +
+ ```sh -git clone https://github.com/NextFire/sachi.git -cd sachi/ -poetry install -poetry run sachi --help +pip3 install sachi ``` Or, with Docker: @@ -21,7 +25,7 @@ Or, with Docker: docker run --rm -it \ -v /path/to/config:/root/.config/sachi \ -v /path/to/media:/media \ - ghcr.io/nextfire/sachi:main --help + ghcr.io/nextfire/sachi:latest --help ``` ## Features