From 716bc6b4f1113a4d5acca8707925ba8a2d6b215c Mon Sep 17 00:00:00 2001 From: Arthur Lui Date: Thu, 16 Jan 2025 17:49:24 -0700 Subject: [PATCH] try automating publishing --- .github/workflows/pypi.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/pypi.yml diff --git a/.github/workflows/pypi.yml b/.github/workflows/pypi.yml new file mode 100644 index 0000000..209fe8d --- /dev/null +++ b/.github/workflows/pypi.yml @@ -0,0 +1,23 @@ +name: Publish to PyPI +on: + push: + tags: + - "v*.*.*" + +jobs: + pypi-publish: + runs-on: ubuntu-latest + # Specifying a GitHub environment is optional, but strongly encouraged + environment: pypi + permissions: + # IMPORTANT: this permission is mandatory for Trusted Publishing + id-token: write + steps: + - uses: actions/checkout@v4 + + - name: Install uv + uses: astral-sh/setup-uv@v5 + + # retrieve your distributions here + - name: Publish package distributions to PyPI + uses: uv build && uv publish