From d00404fa2bf127c946bf08a5cb1a57b9b8cbdc8a Mon Sep 17 00:00:00 2001 From: Max Mehl Date: Tue, 6 Feb 2024 13:43:48 +0100 Subject: [PATCH] add workflow to publish a new pypi package upon tagging --- .github/workflows/publish.yaml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/publish.yaml diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml new file mode 100644 index 0000000..92631a8 --- /dev/null +++ b/.github/workflows/publish.yaml @@ -0,0 +1,18 @@ +# SPDX-FileCopyrightText: 2024 DB Systel GmbH +# +# SPDX-License-Identifier: Apache-2.0 + +name: Python package +on: + push: + tags: + - "v*.*.*" +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Build and publish to PyPI + uses: JRubics/poetry-publish@v2.0 + with: + pypi_token: ${{ secrets.PYPI_TOKEN }}