From 7a5ac85d13c5680adc26ccfe2a268e8d8b0d192b Mon Sep 17 00:00:00 2001 From: Galtozzy Date: Sun, 24 Dec 2023 17:41:31 +0100 Subject: [PATCH] Add deploy --- .github/workflows/build-and-publish.yml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-and-publish.yml b/.github/workflows/build-and-publish.yml index 241005b..a0d9e1c 100644 --- a/.github/workflows/build-and-publish.yml +++ b/.github/workflows/build-and-publish.yml @@ -1,7 +1,8 @@ name: Build and Publish on: workflow_dispatch - +permissions: + id-token: write jobs: build-and-publish: name: Build & Upload Package @@ -19,5 +20,13 @@ jobs: pip install --no-cache-dir "poetry==1.7.1" - name: build run: poetry build - - name: publish - run: poetry publish + - name: Publish to PyPi + uses: pypa/gh-action-pypi-publish@release/v1 + with: + verbose: true + print-hash: true + - name: Sign published artifacts + uses: sigstore/gh-action-sigstore-python@v2.1.0 + with: + inputs: ./dist/*.tar.gz ./dist/*.whl + release-signing-artifacts: true