From b507e3b630b2f3b3ea6c52875b2043dc0331bc49 Mon Sep 17 00:00:00 2001 From: Fabian Zills Date: Tue, 28 Jan 2025 16:56:33 +0100 Subject: [PATCH] add publish action --- .github/workflows/publish.yaml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/publish.yaml diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml new file mode 100644 index 00000000..27953cd1 --- /dev/null +++ b/.github/workflows/publish.yaml @@ -0,0 +1,19 @@ +name: Release +on: + release: + types: + - created + +jobs: + publish: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Install uv + uses: astral-sh/setup-uv@v5 + - name: Publish + env: + PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }} + run: | + uv build + uv publish --token $PYPI_TOKEN