From 0561c2c1ecac8c252793b9ecf1cfbd2d023a39a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Coelho?= <16445494+jcoelho93@users.noreply.github.com> Date: Fri, 7 Jun 2024 22:37:30 +0100 Subject: [PATCH] Publish to Pypi --- .github/workflows/publish.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..94d5d68 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,26 @@ +on: + release: + types: + - published + +jobs: + pypi-publish: + name: Upload release to Pypi + runs-on: ubuntu-latest + environment: pypi + permissions: + contents: read + id-token: write + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-python@v4 + with: + python-version: 3.12 + - name: Run image + uses: abatilo/actions-poetry@v2 + with: + poetry-version: 1.8.2 + - name: poetry build + run: poetry build + - name: Publish package distributions to Pypi + uses: pypa/gh-action-pypi-publish@release/v1