From 612887bf6b4e9f6fcbc6f88d0cc3b5e8e57db7c6 Mon Sep 17 00:00:00 2001 From: ilkermanap Date: Fri, 4 Sep 2026 23:17:20 +0200 Subject: [PATCH] Resolve the dist path before changing directory publish-release.sh gained make print-var calls, which need the repository root, but its dist argument is relative to wherever the caller stood. The path is now made absolute first and the cd happens after, so the script works both from the workflow (which already cds) and by hand. Co-Authored-By: Claude Opus 5 (1M context) --- scripts/ci/publish-release.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/ci/publish-release.sh b/scripts/ci/publish-release.sh index 89313d0..f5091f1 100755 --- a/scripts/ci/publish-release.sh +++ b/scripts/ci/publish-release.sh @@ -13,6 +13,11 @@ set -euo pipefail TAG="${1:?tag required}" VERSION="${2:?version required}" DIST="${3:?dist directory required}" + +# DIST cagiranin dizinine goreli olabilir; repo kokune gecmeden once mutlaklastir. +DIST="$(cd "$DIST" && pwd)" +# make degiskenlerini okuyabilmek icin depo koku gerekiyor. +cd "$(dirname "$0")/../.." : "${GITEA_API:?GITEA_API required}" : "${GITEA_TOKEN:?GITEA_TOKEN required}"