diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 6cc4481..7195a83 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -56,3 +56,23 @@ jobs: git config user.email "github-actions[bot]@users.noreply.github.com" git tag "v${{ steps.version.outputs.version }}" git push origin "v${{ steps.version.outputs.version }}" + + - name: Create GitHub Release + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + gh release create "v${{ steps.version.outputs.version }}" \ + dist/*.whl dist/*.tar.gz \ + --title "nantex v${{ steps.version.outputs.version }}" \ + --notes "## Install + +\`\`\`bash +pip install nantex==${{ steps.version.outputs.version }} +# or +uvx nantex main.tex +\`\`\` + +## What's changed +See [commit history](https://github.com/Forge41/nantex/commits/main) for details. + +**Full changelog:** https://pypi.org/project/nantex/${{ steps.version.outputs.version }}/" diff --git a/README.md b/README.md index c474c9d..224210d 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,9 @@ # nantex +[![PyPI version](https://img.shields.io/pypi/v/nantex.svg)](https://pypi.org/project/nantex/) +[![Python](https://img.shields.io/pypi/pyversions/nantex.svg)](https://pypi.org/project/nantex/) +[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) + LaTeX-to-PDF live preview in your browser — no local LaTeX install needed. Write `.tex`, save, see the result. That's it.