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:
1 parent
5865198240
commit
612887bf6b
1 file changed
+5
@@ -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}"
|
||||
|
||||
|
||||
Reference in new issue
Block a user