From d11610b6c761972e932a1b8d74065588ecae9dc4 Mon Sep 17 00:00:00 2001 From: Zsolt Tasnadi Date: Sun, 16 Aug 2026 10:39:40 +0200 Subject: [PATCH] Point the release pipeline at the engines org MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The publishing pipeline was already complete — subtree split to the mirror, gem build and push on a warp_engine-v* tag — but it had never been triggered, and after the org reorganization three of its targets were stale: the mirror push URL and the rubygems registry namespace (twice). The gemspec's allowed_push_host has to match the --host that `gem push` receives, so it now carries the full registry URL rather than the bare forge host, plus source and documentation links. Co-Authored-By: Claude Opus 5 (1M context) --- .woodpecker.yaml | 10 +++++----- libs/ruby/warp_engine/warp_engine.gemspec | 6 +++++- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/.woodpecker.yaml b/.woodpecker.yaml index 3e383cc..c7cc0e5 100644 --- a/.woodpecker.yaml +++ b/.woodpecker.yaml @@ -1,10 +1,10 @@ # Read-only split mirror: a libs/ruby/warp_engine alkönyvtárat kitükrözi a -# tools/warp_engine repóba (fejlesztés itt, a monorepóban történik; a tükör +# engines/warp_engine repóba (fejlesztés itt, a monorepóban történik; a tükör # csak publikálásra való). Tag-elt release (warp_engine-v*) esetén a gem a # Forgejo rubygems registry-be is felmegy. # # Szükséges Woodpecker secret: forge_token — Forgejo access token -# repository:write (tools/warp_engine) és package:write joggal. +# repository:write (engines/warp_engine) és package:write joggal. when: - event: push @@ -32,7 +32,7 @@ steps: - git subtree split --prefix=libs/ruby/warp_engine HEAD -b warp-engine-split # a secretbe másolt token végén lehet sortörés — levágjuk - TOKEN="$$(printf '%s' "$${FORGE_TOKEN}" | tr -d '[:space:]')" - - git push --force "https://ci:$${TOKEN}@git.teletypegames.org/tools/warp_engine.git" warp-engine-split:master + - git push --force "https://ci:$${TOKEN}@git.teletypegames.org/engines/warp_engine.git" warp-engine-split:master when: - event: push branch: master @@ -49,9 +49,9 @@ steps: - mkdir -p ~/.gem - TOKEN="$$(printf '%s' "$${FORGE_TOKEN}" | tr -d '[:space:]')" - | - printf -- '---\n:https://git.teletypegames.org/api/packages/tools/rubygems: Bearer %s\n' "$${TOKEN}" > ~/.gem/credentials + printf -- '---\n:https://git.teletypegames.org/api/packages/engines/rubygems: Bearer %s\n' "$${TOKEN}" > ~/.gem/credentials - chmod 600 ~/.gem/credentials - - gem push --host https://git.teletypegames.org/api/packages/tools/rubygems warp_engine-*.gem + - gem push --host https://git.teletypegames.org/api/packages/engines/rubygems warp_engine-*.gem when: - event: tag ref: refs/tags/warp_engine-v* diff --git a/libs/ruby/warp_engine/warp_engine.gemspec b/libs/ruby/warp_engine/warp_engine.gemspec index 06a1a7c..60b791c 100644 --- a/libs/ruby/warp_engine/warp_engine.gemspec +++ b/libs/ruby/warp_engine/warp_engine.gemspec @@ -13,7 +13,11 @@ Gem::Specification.new do |spec| spec.required_ruby_version = ">= 3.2" - spec.metadata["allowed_push_host"] = "https://git.teletypegames.org" + # Must match the --host passed to `gem push`; the forge serves one RubyGems + # registry per org, and the engine lives in `engines`. + spec.metadata["allowed_push_host"] = "https://git.teletypegames.org/api/packages/engines/rubygems" + spec.metadata["source_code_uri"] = "https://git.teletypegames.org/engines/warp_engine" + spec.metadata["documentation_uri"] = "https://wiki.teletypegames.org/infrastructure/warp-engine" spec.files = Dir["{app,config,db,lib}/**/*", "README.md"]