From 4db4d4e330883acd80a7e9266218d046a2c84d94 Mon Sep 17 00:00:00 2001 From: janezlapajne Date: Sun, 30 Jun 2024 22:08:05 +0200 Subject: [PATCH] ci: add release yml to publish to pypi --- .github/workflows/publish.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 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..ac119d7 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,27 @@ +name: Publish To The Python Package Index (PyPI) + +on: + # workflow_run: + # workflows: [Auto release maker] + # types: [completed] + # pull_request: + # branches: + # - main + # types: + # - closed + push: + branches: [develop, main] + +jobs: + pypi-publish: + name: upload release to PyPI + runs-on: ubuntu-latest + permissions: + contents: read + id-token: write + steps: + - uses: actions/checkout@v4 + - name: Setup PDM + uses: pdm-project/setup-pdm@v4 + - name: Publish package distributions to PyPI + run: pdm publish