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: