fix: release workflow token
CI / lint (push) Successful in 19s
CI / lint (pull_request) Successful in 18s
CI / test (3.11) (push) Successful in 38s
CI / test (3.12) (pull_request) Successful in 30s
CI / test (3.13) (pull_request) Successful in 33s
CI / test (3.13) (push) Successful in 46s
CI / test (3.12) (push) Successful in 58s
CI / test (3.11) (pull_request) Successful in 1m1s

This commit is contained in:
2026-07-27 09:46:55 +02:00
parent 5c412902f4
commit 4eada91430
2 changed files with 4 additions and 5 deletions
+3 -2
View File
@@ -20,6 +20,7 @@ jobs:
with:
ref: ${{ github.ref_name }}
fetch-depth: 0
persist-credentials: false
- name: Set up Python
uses: actions/setup-python@v6
@@ -65,8 +66,8 @@ jobs:
id: release_step
env:
TWINE_USERNAME: "__token__"
TWINE_PASSWORD: ${{ secrets.PIP_REPOSITORY_API_TOKEN }}
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
TWINE_PASSWORD: ${{ secrets.MX_GITEA_BOT_TOKEN }}
MX_GITEA_BOT_TOKEN: ${{ secrets.MX_GITEA_BOT_TOKEN }}
run: |
pip install python-semantic-release==9.* wheel build twine
semantic-release --config ./ci/semantic_release.toml version
+1 -3
View File
@@ -28,9 +28,7 @@ default_bump_level = 0
[tool.semantic_release.remote]
type = "gitea"
domain = "gitea.psi.ch"
[tool.semantic_release.remote.token]
env = "GITEA_TOKEN"
token = { env = "MX_GITEA_BOT_TOKEN" }
[tool.semantic_release.publish]
dist_glob_patterns = ["dist/*"]