summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorThomas Boerger <thomas@webhippie.de>2016-12-04 23:48:36 +0100
committerThomas Boerger <tboerger@suse.de>2016-12-05 14:31:49 +0100
commite52b24ad5d4f8aae6bb767f8f1b2bb6a2f3dd766 (patch)
tree5bfc4a5f1929b6f850149a6b2c2650437f50221d /Makefile
parent947d2ee21b63404d19e835f275f85926be2f7f0a (diff)
downloadgitea-e52b24ad5d4f8aae6bb767f8f1b2bb6a2f3dd766.tar.gz
gitea-e52b24ad5d4f8aae6bb767f8f1b2bb6a2f3dd766.zip
Properly move releases within drone builds
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 8 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index b0f6f70799..1de097b975 100644
--- a/Makefile
+++ b/Makefile
@@ -90,7 +90,11 @@ $(EXECUTABLE): $(wildcard *.go)
go build -v -tags '$(TAGS)' -ldflags '-s -w $(LDFLAGS)' -o $@
.PHONY: release
-release: release-build release-copy release-check
+release: release-dirs release-build release-copy release-check
+
+.PHONY: release-dirs
+release-dirs:
+ mkdir -p $(DIST)/binaries $(DIST)/release
.PHONY: release-build
release-build:
@@ -98,10 +102,12 @@ release-build:
go get -u github.com/karalabe/xgo; \
fi
xgo -dest $(DIST)/binaries -tags '$(TAGS)' -ldflags '-s -w $(LDFLAGS)' -targets '$(TARGETS)' -out $(EXECUTABLE)-$(VERSION) $(IMPORT)
+ifeq ($(CI),drone)
+ mv /build/* $(DIST)/binaries
+endif
.PHONY: release-copy
release-copy:
- mkdir -p $(DIST)/release
$(foreach file,$(wildcard $(DIST)/binaries/$(EXECUTABLE)-*),cp $(file) $(DIST)/release/$(notdir $(file));)
.PHONY: release-check