Skip to content

Commit

Permalink
prebuild CSS/JS before xgo release binaries (#9293)
Browse files Browse the repository at this point in the history
* prebuild CSS/JS before xgo release binaries

* Update .drone.yml

* Update Makefile

* update per @lafriks feedback
  • Loading branch information
techknowlogick authored Dec 8, 2019
1 parent baae90e commit c34fdf7
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 3 deletions.
19 changes: 17 additions & 2 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -647,8 +661,6 @@ steps:
exclude:
- pull_request



---
kind: pipeline
name: docker-linux-arm64
Expand Down Expand Up @@ -754,6 +766,9 @@ workspace:
base: /go
path: src/code.gitea.io/gitea

clone:
disable: true

when:
status:
- success
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit c34fdf7

Please sign in to comment.