From b2e83e0fddf4b3d089be3f71b772909658c6a84b Mon Sep 17 00:00:00 2001 From: Cameron Hobbs Date: Fri, 10 Jul 2026 11:31:05 +0100 Subject: [PATCH] Add build config --- .github/workflows/build.yml | 42 +++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..0a13497 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,42 @@ +name: Build + +on: + workflow_dispatch: + push: + tags: + - v* + +jobs: + build: + name: Build + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v7 + + - name: Install uv + uses: astral-sh/setup-uv@v6 + + - name: Build + run: uv build + + - uses: actions/upload-artifact@v7 + with: + path: ./dist/* + + publish: + name: Upload to PyPI + needs: [build] + runs-on: ubuntu-latest + environment: pypi + permissions: + id-token: write + if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') + steps: + - uses: actions/download-artifact@v8 + with: + name: artifact + path: dist + + - uses: pypa/gh-action-pypi-publish@release/v1 + with: + skip-existing: true