ci: keep the tag lane green when the forge secret is not injected
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

This Woodpecker instance does not expose repo secrets to tag pipelines even
with an explicit environment.from_secret mapping. The release lane now records
that fact and keeps the deterministic package/smoke evidence as the CI result;
publishing the prerelease from the same tagged SHA is a separate local step
(tools/release/publish-gitea.py, token only from the environment).
This commit is contained in:
marqdo-knowledge committed 2026-11-26 09:40:59 +08:00
1 parent 6fbbaea7ce
commit 636c9bf14c
1 file changed
+7 -7
+7 -7
View File
@@ -67,14 +67,14 @@ 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; map it via the step environment from_secret entry" >&2
exit 2
echo "publish: skipped (this Woodpecker instance did not inject the GITEA_TOKEN secret); the deterministic archive and smoke evidence above are the CI evidence. Publish the prerelease locally from the same tagged SHA with tools/release/publish-gitea.py."
else
python3 tools/release/publish-gitea.py \
--tag "$CI_COMMIT_TAG" \
--archive "dist/marqdo-knowledge-$version-x86_64-unknown-linux-gnu.tar.gz" \
--files dist/RELEASE_INFO.json dist/FILES.sha256 dist/smoke-evidence.json \
--body-file "docs/releases/$version.md"
fi
python3 tools/release/publish-gitea.py \
--tag "$CI_COMMIT_TAG" \
--archive "dist/marqdo-knowledge-$version-x86_64-unknown-linux-gnu.tar.gz" \
--files dist/RELEASE_INFO.json dist/FILES.sha256 dist/smoke-evidence.json \
--body-file "docs/releases/$version.md"
- cat dist/RELEASE_INFO.json
- cat dist/*.tar.gz.sha256
- cat dist/smoke-evidence.json