From 39c33b25c271c41c45058f20052ab1e5b6c155d9 Mon Sep 17 00:00:00 2001 From: Massimiliano Pippi Date: Fri, 29 Dec 2023 12:25:54 +0100 Subject: [PATCH] pypi release --- .github/workflows/pypi.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 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..59a3490 --- /dev/null +++ b/.github/workflows/pypi.yml @@ -0,0 +1,26 @@ +name: PyPI Release + +on: + push: + tags: + - "v[0-9].[0-9]+.[0-9]+*" + +jobs: + release-on-pypi: + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Install Hatch + run: pip install hatch + + - name: Build + run: hatch build + + - name: Publish on PyPi + env: + HATCH_INDEX_USER: __token__ + HATCH_INDEX_AUTH: ${{ secrets.PYPI_API_TOKEN }} + run: hatch publish -y \ No newline at end of file