From 296d7e0ff4e2f4ab2b5f1d87c8498512ee26fcef Mon Sep 17 00:00:00 2001 From: David Perl Date: Thu, 2 Jul 2026 17:19:59 +0200 Subject: [PATCH] fix: remove unnecessary comments --- .gitea/workflows/publish.yml | 18 ++---------------- ci/semantic_release.toml | 7 ++++--- 2 files changed, 6 insertions(+), 19 deletions(-) diff --git a/.gitea/workflows/publish.yml b/.gitea/workflows/publish.yml index f58e6a6..fb00f4a 100644 --- a/.gitea/workflows/publish.yml +++ b/.gitea/workflows/publish.yml @@ -10,18 +10,11 @@ jobs: concurrency: group: ${{ github.workflow }}-release-${{ github.ref_name }} cancel-in-progress: false - if: ${{ github.event.workflow_run.conclusion == 'success' }} outputs: release_made: ${{ steps.release_step.outputs.release_made }} permissions: contents: write steps: - # Note: We checkout the repository at the branch that triggered the workflow - # with the entire history to ensure to match PSR's release branch detection - # and history evaluation. - # However, we forcefully reset the branch to the workflow sha because it is - # possible that the branch was updated while the workflow was running. This - # prevents accidentally releasing un-evaluated changes. - name: Setup | Checkout Repository on Release Branch uses: actions/checkout@v6 with: @@ -37,13 +30,6 @@ jobs: run: | git reset --hard ${{ github.sha }} - name: Evaluate | Verify upstream has NOT changed - # Last chance to abort before causing an error as another PR/push was applied to - # the upstream branch while this workflow was running. This is important - # because we are committing a version change (--commit). You may omit this step - # if you have 'commit: false' in your configuration. - # - # You may consider moving this to a repo script and call it from this step instead - # of writing it in-line. shell: bash run: | set +o pipefail @@ -78,8 +64,8 @@ jobs: - name: Semantic Version Release id: release_step env: - TWINE_USERNAME: "__token__" # Username for Twine when using token-based auth - TWINE_PASSWORD: ${{ secrets.PIP_REPOSITORY_API_TOKEN }} # Use the secret for authentication + TWINE_USERNAME: "__token__" + TWINE_PASSWORD: ${{ secrets.PIP_REPOSITORY_API_TOKEN }} GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | pip install python-semantic-release==9.* wheel build twine diff --git a/ci/semantic_release.toml b/ci/semantic_release.toml index 09e1b68..1910f45 100644 --- a/ci/semantic_release.toml +++ b/ci/semantic_release.toml @@ -25,10 +25,11 @@ minor_tags = ["feat"] patch_tags = ["fix", "perf"] default_bump_level = 0 -[tool.semantic_release.remote] + +[semantic_release.remote] +type = "gitea" +domain = "gitea.psi.ch" name = "origin" -type = "github" -ignore_token_for_push = true [tool.semantic_release.remote.token] env = "GH_TOKEN"