From dd735b8d411d742d039240525dff4ddf91103b6d Mon Sep 17 00:00:00 2001 From: Nandisha D Date: Tue, 19 May 2026 11:50:25 +0530 Subject: [PATCH] feat: add PyPI badges and GitHub Release creation to CI MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - README: PyPI version, Python version, MIT license badges - workflow: gh release create after publish — attaches .whl + .tar.gz, shows up in repo Releases sidebar with install instructions Co-Authored-By: Claude Sonnet 4.6 (1M context) --- .github/workflows/publish.yml | 20 ++++++++++++++++++++ README.md | 4 ++++ 2 files changed, 24 insertions(+) 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.