From c34fdf7e33de3a31247e54910e2fb6e81aef4fd8 Mon Sep 17 00:00:00 2001 From: techknowlogick Date: Sun, 8 Dec 2019 17:24:17 -0500 Subject: [PATCH] prebuild CSS/JS before xgo release binaries (#9293) * prebuild CSS/JS before xgo release binaries * Update .drone.yml * Update Makefile * update per @lafriks feedback --- .drone.yml | 19 +++++++++++++++++-- Makefile | 2 +- 2 files changed, 18 insertions(+), 3 deletions(-) diff --git a/.drone.yml b/.drone.yml index 95811c0224..b44bcb8725 100644 --- a/.drone.yml +++ b/.drone.yml @@ -388,6 +388,13 @@ steps: commands: - git fetch --tags --force + - name: build + pull: always + image: node:10 # this step is kept at the lowest version of node that we support + commands: + - make css + - make js + - name: static pull: always image: techknowlogick/xgo:latest @@ -489,6 +496,13 @@ steps: commands: - git fetch --tags --force + - name: build + pull: always + image: node:10 # this step is kept at the lowest version of node that we support + commands: + - make css + - make js + - name: static pull: always image: techknowlogick/xgo:latest @@ -647,8 +661,6 @@ steps: exclude: - pull_request - - --- kind: pipeline name: docker-linux-arm64 @@ -754,6 +766,9 @@ workspace: base: /go path: src/code.gitea.io/gitea +clone: + disable: true + when: status: - success diff --git a/Makefile b/Makefile index 3ee38f806c..d217405fbf 100644 --- a/Makefile +++ b/Makefile @@ -397,7 +397,7 @@ $(EXECUTABLE): $(GO_SOURCES) GO111MODULE=on $(GO) build -mod=vendor $(GOFLAGS) $(EXTRA_GOFLAGS) -tags '$(TAGS)' -ldflags '-s -w $(LDFLAGS)' -o $@ .PHONY: release -release: js css generate release-dirs release-windows release-linux release-darwin release-copy release-compress release-check +release: generate release-dirs release-windows release-linux release-darwin release-copy release-compress release-check .PHONY: release-dirs release-dirs: