EC-21: FIX: Empty return from gitea python error
Refers: Evercatch/evercatch-board#21
This commit is contained in:
5
Makefile
5
Makefile
@@ -62,10 +62,9 @@ endif
|
||||
@echo "Creating zip from git archive..."
|
||||
git archive --format=zip HEAD > /tmp/$(GITEA_REPO)-$(SEMVER).zip
|
||||
@echo "Publishing $(SEMVER) to Gitea Composer registry..."
|
||||
curl -s \
|
||||
curl -s -w "\nHTTP %{http_code}\n" \
|
||||
--user "$(GITEA_USER):$(GITEA_TOKEN)" \
|
||||
--upload-file /tmp/$(GITEA_REPO)-$(SEMVER).zip \
|
||||
"$(GITEA_URL)/api/packages/$(GITEA_OWNER)/composer?version=$(SEMVER)" \
|
||||
| python3 -m json.tool || true
|
||||
"$(GITEA_URL)/api/packages/$(GITEA_OWNER)/composer?version=$(SEMVER)"
|
||||
rm -f /tmp/$(GITEA_REPO)-$(SEMVER).zip
|
||||
@echo "Done. Check: $(GITEA_URL)/$(GITEA_OWNER)/$(GITEA_REPO)/packages"
|
||||
|
||||
Reference in New Issue
Block a user