From d54189bfc227b6aacec308861d494941bfd7b356 Mon Sep 17 00:00:00 2001 From: Manuel-Knepper Date: Wed, 6 May 2026 11:52:14 +0200 Subject: [PATCH] added test.yml for testing workflow --- .github/workflows/publish.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 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..bc972dd --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,33 @@ +name: Publish to PyPI + +on: + pull_request: + types: + - closed + branches: + - main + +permissions: + contents: read + id-token: write + +jobs: + publish: + name: Publish to PyPI + if: | + github.event.pull_request.merged && contains(github.event.pull_request.labels.*.name, 'autorelease: tagged') + runs-on: ubuntu-latest + environment: + name: pypi + url: https://pypi.org/project/fixbikenet/ + + steps: + - uses: actions/checkout@v4 + + - name: Build package + run: | + python -m pip install build + python -m build + + - name: Publish to PyPI + uses: pypa/gh-action-pypi-publish@release/v1