From 74a0d2e01f68cbabacfd65ea870ea7aaa2f9b0ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Kr=C3=BCger?= Date: Mon, 17 Aug 2026 17:40:16 +0200 Subject: [PATCH] fix: actually stage the checks/publish split Same slip as triggershell's equivalent fix: git mv reuses the already- indexed blob for the source path rather than re-hashing the working tree, so it silently ignores unstaged edits made before the rename. The previous commit renamed release.yaml to ci.yml but carried over the old single-job content underneath it. This is the content that commit was supposed to carry. --- .gitea/workflows/ci.yml | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 481e2b6..182b25f 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -1,12 +1,12 @@ -name: Release +name: CI on: push: - tags: - - "v*.*.*" + pull_request: jobs: - release: + checks: + name: Checks runs-on: ubuntu-latest steps: - uses: https://github.com/actions/checkout@v4 @@ -26,6 +26,21 @@ jobs: - run: pytest + publish: + name: Publish to PyPI registry + if: startsWith(github.ref, 'refs/tags/') + needs: checks + runs-on: ubuntu-latest + steps: + - uses: https://github.com/actions/checkout@v4 + + - uses: https://github.com/actions/setup-python@v5 + with: + python-version: "3.12" + + - name: Install build dependencies + run: pip install ".[dev]" build twine + - name: Set package version from the tag run: sed -i "s/^__version__ = .*/__version__ = \"${GITHUB_REF_NAME#v}\"/" src/openrgb_hue/__init__.py