From 7e376f8211d462360fef00e077992c58556aca7a Mon Sep 17 00:00:00 2001 From: Mikhail Kiselev Date: Tue, 10 Feb 2026 23:58:51 +0300 Subject: [PATCH] fix: release-upload depends on release target --- Makefile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 451481c..60943fe 100644 --- a/Makefile +++ b/Makefile @@ -81,7 +81,8 @@ release-all: lint @ls -lh dist/*.zip # Upload release to Gitea (requires GITEA_TOKEN env var) -release-upload: +# Depends on 'release' to ensure dist/ files are up-to-date +release-upload: release @if [ -z "$(GITEA_TOKEN)" ]; then echo "Error: GITEA_TOKEN not set"; exit 1; fi @echo "Creating release $(VERSION) on Gitea..." @RELEASE_ID=$$(curl -s -X POST \ @@ -101,8 +102,8 @@ release-upload: done @echo "Done!" -# Full release cycle: build + upload -release-publish: release release-upload +# Full release cycle: build + upload (release-upload already depends on release) +release-publish: release-upload # Help help: