From 19e2e1b68edf7d27a88a88b3f1fb58d60510a491 Mon Sep 17 00:00:00 2001 From: niklasmueboe Date: Mon, 10 Jun 2024 15:43:54 +0200 Subject: [PATCH] publish to pypi workflow --- .github/workflows/publish-pypi.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/publish-pypi.yml diff --git a/.github/workflows/publish-pypi.yml b/.github/workflows/publish-pypi.yml new file mode 100644 index 0000000..71e3d1c --- /dev/null +++ b/.github/workflows/publish-pypi.yml @@ -0,0 +1,21 @@ +name: Publish Python Package to PyPI + +on: + release: + types: [published] + +jobs: + publish: + runs-on: ubuntu-latest + environment: pypi + permissions: + id-token: write # to authenticate as Trusted Publisher to pypi.org + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + with: + python-version: "3.x" + cache: "pip" + - run: pip install build + - run: python -m build + - uses: pypa/gh-action-pypi-publish@release/v1