diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..6557c53 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,28 @@ +name: Upload Python Package + +on: + push: + tags: + - 'v*' + +jobs: + pypi-publish: + runs-on: ubuntu-latest + permissions: + id-token: write + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + with: + python-version: "3.13" + - name: Install uv + uses: astral-sh/setup-uv@v5 + with: + enable-cache: true + cache-dependency-glob: "**/pyproject.toml" + - name: Install dependencies + run: uv sync --all-extras + - name: Build wheel and tar.gz + run: uv run poe build + - name: Publish Package + uses: pypa/gh-action-pypi-publish@release/v1 diff --git a/README.md b/README.md index 6259498..11e140d 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,7 @@ # rispy - an RIS file parser/writer for Python -[![PyPI version](https://badge.fury.io/py/rispy.svg)](https://badge.fury.io/py/rispy) +[![PyPI Version](https://badge.fury.io/py/rispy.svg)](https://pypi.org/project/rispy/) +[![PyPI Downloads](https://img.shields.io/pypi/dm/rispy)](https://pypistats.org/packages/rispy) A Python reader/writer of [RIS](https://en.wikipedia.org/wiki/RIS_(file_format)) reference files.