Compare commits

..
Author SHA1 Message Date
cflmy 6311ad96e6 fix(ci): quote the manual-publish skip message for YAML (#31)
ci/woodpecker/push/ci Pipeline is pending
ci/woodpecker/push/tauri-linux Pipeline is pending
ci/woodpecker/manual/ci Pipeline was successful
ci/woodpecker/manual/tauri-linux Pipeline is running
2026-12-03 13:40:35 +08:00
cflmy 90a206dbfd ci(mqdh): keep native lanes as blocked templates; allow explicitly approved manual publish (#31)
A manual/tag pipeline must not stay pending on workflows whose native agents do
not exist. Move the Windows/macOS lanes to docs/mqdh/ci/ as BLOCKED templates
and document enabling them when real agents/credentials are attached. The Linux
lane stays real; publishing runs on a tag pipeline or an explicit manual
pipeline with MQDH_TAURI_PUBLISH=1 + MQDH_TAURI_VERSION (same protected script,
same SHA evidence).
2026-12-03 13:40:04 +08:00
3 changed files with 15 additions and 3 deletions

No files matched your search

+9 -3
View File
@@ -43,16 +43,22 @@ steps:
- cat .ci/mqdh-release.json
- cat .ci/release-evidence.json
# Publishing is an explicit maintainer action. It runs on a tag pipeline, or
# on a manual pipeline where the maintainer passes MQDH_TAURI_PUBLISH=1 and
# MQDH_TAURI_VERSION=<version> (used when the tag pipeline cannot be used).
# A normal manual pipeline only builds evidence and publishes nothing.
publish:
image: node:24.22.3-bookworm
depends_on: [installer]
when:
- event: tag
- event: [tag, manual]
environment:
MQDH_GITEA_TOKEN:
from_secret: gitea_token
MQDH_TAURI_PUBLISH: "${MQDH_TAURI_PUBLISH}"
MQDH_TAURI_VERSION: "${MQDH_TAURI_VERSION}"
CI: "true"
commands:
- version="${CI_COMMIT_TAG#mqdh-v}"
- test "$version" != "$CI_COMMIT_TAG"
- set -eu
- if [ -n "${CI_COMMIT_TAG:-}" ]; then version="${CI_COMMIT_TAG#mqdh-v}"; test "$version" != "$CI_COMMIT_TAG"; elif [ "${MQDH_TAURI_PUBLISH:-0}" = "1" ]; then version="$MQDH_TAURI_VERSION"; test -n "$version"; else echo "manual run without MQDH_TAURI_PUBLISH=1 -> no release"; exit 0; fi
- node scripts/release.ts --version "$version" --source "$CI_COMMIT_SHA" --assets .ci --publish
@@ -1,3 +1,6 @@
# BLOCKED template: not active CI until a native macos agent and signing
# credentials are attached. No artifact may be claimed before then.
# Enable by moving this file to .woodpecker/ and registering the native agent.
# MQDH Tauri macOS DMG lane (BLOCKED until a native macOS agent exists).
#
# Signing/notarization requires an Apple Developer ID in protected secrets.
@@ -1,3 +1,6 @@
# BLOCKED template: not active CI until a native windows agent and signing
# credentials are attached. No artifact may be claimed before then.
# Enable by moving this file to .woodpecker/ and registering the native agent.
# MQDH Tauri Windows NSIS lane (BLOCKED until a native Windows agent exists).
#
# The step is labelled so Woodpecker only schedules it on an agent that declares