From 51f11bd9107c3f27f009b54d5327e62f278f2be3 Mon Sep 17 00:00:00 2001 From: Cian Hughes Date: Fri, 23 May 2025 12:31:16 +0100 Subject: [PATCH] Added automatic publishing to pypi --- .github/workflows/publish.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..d802293 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,19 @@ +name: Publish to PyPI + +on: + push: + tags: + - "*" + +jobs: + publish: + runs-on: ubuntu-latest + environment: release + steps: + - uses: actions/checkout@v4 + - name: Install uv + run: pip install uv + - name: Build package + run: uv build + - name: Publish to PyPI + run: uv publish --token ${{ secrets.PYPI_API_TOKEN }}