diff --git a/.woodpecker/main.yml b/.woodpecker/main.yml index b7333bb..5038f66 100644 --- a/.woodpecker/main.yml +++ b/.woodpecker/main.yml @@ -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