From 33df0fa39b2736138f1ecafd26c589828bbbf900 Mon Sep 17 00:00:00 2001 From: leonargs Date: Fri, 9 Feb 2024 15:15:43 +0100 Subject: [PATCH] GHA: deploy to pypi on release --- .github/workflows/deploy.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/deploy.yml diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..186c298 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,32 @@ + +name: Deploy + +on: + release: + types: [published] + + +jobs: + deploy: + + runs-on: ubuntu-latest + permissions: + id-token: write + + steps: + - name: Check out repository + - uses: actions/checkout@v3 + + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python-version }} + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install build + - name: Build package + run: python -m build + - name: Publish release distributions to PyPI + uses: pypa/gh-action-pypi-publish@release/v1