Resolve the dist path before changing directory
All checks were successful
build-image / build (push) Successful in 1s
All checks were successful
build-image / build (push) Successful in 1s
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) <noreply@anthropic.com>
This commit is contained in:
@@ -13,6 +13,11 @@ set -euo pipefail
|
|||||||
TAG="${1:?tag required}"
|
TAG="${1:?tag required}"
|
||||||
VERSION="${2:?version required}"
|
VERSION="${2:?version required}"
|
||||||
DIST="${3:?dist directory 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_API:?GITEA_API required}"
|
||||||
: "${GITEA_TOKEN:?GITEA_TOKEN required}"
|
: "${GITEA_TOKEN:?GITEA_TOKEN required}"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user