From ffb2796715e51ee32da20082d4f49a1eb792ce42 Mon Sep 17 00:00:00 2001 From: Jochem Smit Date: Fri, 23 Feb 2024 16:31:55 +0100 Subject: [PATCH] add pypi main workflow --- .github/workflows/pypi_main.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/pypi_main.yml diff --git a/.github/workflows/pypi_main.yml b/.github/workflows/pypi_main.yml new file mode 100644 index 0000000..349e5f0 --- /dev/null +++ b/.github/workflows/pypi_main.yml @@ -0,0 +1,25 @@ +name: PyPi distribute main release +on: [release] + +jobs: + build-n-publish: + name: Build and publish Python 🐍 distributions 📦 to PyPI and TestPyPI + runs-on: ubuntu-latest + permissions: + id-token: write + + steps: + - name: Checkout + uses: actions/checkout@v3 + with: + fetch-depth: 0 + - name: Set up Python 3.10 + uses: actions/setup-python@v4 + with: + python-version: "3.10" + - name: Install Hatch + run: pip install hatch + - name: Build + run: hatch build + - name: Publish distribution 📦 to PyPI + uses: pypa/gh-action-pypi-publish@release/v1