ci: map the Gitea token into the release step explicitly
CI / fmt + clippy + workspace tests (push) Waiting to run
CI / MSRV check (1.89) (push) Waiting to run
CI / real Analysis integration (pinned core CLI) (push) Waiting to run
ci/woodpecker/push/main Pipeline was successful
ci/woodpecker/tag/main Pipeline failed

Woodpecker does not auto-inject repo secrets into steps; map GITEA_TOKEN with
environment.from_secret so tools/release/publish-gitea.py can create the
prerelease and upload assets. The lane still fails closed with an actionable
message when the secret is absent.
This commit is contained in:
marqdo-knowledge committed 2026-11-26 09:27:57 +08:00
1 parent 22c3d92b47
commit 6fbbaea7ce
1 file changed
+4 -1
+4 -1
View File
@@ -47,6 +47,9 @@ steps:
when:
event: [tag]
image: rust:1.100-bookworm
environment:
GITEA_TOKEN:
from_secret: GITEA_TOKEN
commands:
- apt-get update
- apt-get install -y --no-install-recommends ca-certificates git build-essential python3
@@ -64,7 +67,7 @@ steps:
python3 tools/release/package.py --source-sha "$CI_COMMIT_SHA" --version "$version"
python3 tools/release/smoke.py --archive "dist/marqdo-knowledge-$version-x86_64-unknown-linux-gnu.tar.gz" --evidence-out dist/smoke-evidence.json
if [ -z "${GITEA_TOKEN:-}" ]; then
echo "GITEA_TOKEN secret is required for the release lane" >&2
echo "GITEA_TOKEN secret is required for the release lane; map it via the step environment from_secret entry" >&2
exit 2
fi
python3 tools/release/publish-gitea.py \