Skip to content

Commit

Permalink
[ci] pypi release
Browse files Browse the repository at this point in the history
  • Loading branch information
NextFire committed Feb 2, 2024
1 parent 1acd9bb commit 18c3d03
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 5 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
14 changes: 9 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

<p>
<a href="https://pypi.org/project/sachi" alt="Python version compatibility">
<img src="https://img.shields.io/pypi/pyversions/sachi" /></a>
<a href="https://pypi.org/project/sachi" alt="PyPI version">
<img src="https://img.shields.io/pypi/v/sachi" /></a>
</p>

```sh
git clone https://github.com/NextFire/sachi.git
cd sachi/
poetry install
poetry run sachi --help
pip3 install sachi
```

Or, with Docker:
Expand All @@ -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
Expand Down

0 comments on commit 18c3d03

Please sign in to comment.