From 7713614daba522236020f87b103cf14e24d31d8b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Duchesneau?= Date: Mon, 27 Apr 2020 15:00:57 -0400 Subject: [PATCH] fix goreleaser to rebuild JS content --- .goreleaser.yml | 6 ++---- dashboard/client/build.sh | 6 ++++++ eosq/build.sh | 6 ++++++ 3 files changed, 14 insertions(+), 4 deletions(-) create mode 100755 dashboard/client/build.sh create mode 100755 eosq/build.sh diff --git a/.goreleaser.yml b/.goreleaser.yml index ee3164b7..1dcd071e 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -6,10 +6,8 @@ release: name_template: '{{.Tag}}' before: hooks: - - yarn install --cwd eosq - - yarn build --cwd eosq - - yarn install --cwd dashboard/client - - yarn build --cwd dashboard/client + - eosq/build.sh + - dashboard/client/build.sh # Requires `rice` to be installed: go get github.com/GeertJohan/go.rice/rice - go generate ./dashboard - go generate ./eosq diff --git a/dashboard/client/build.sh b/dashboard/client/build.sh new file mode 100755 index 00000000..78dccee1 --- /dev/null +++ b/dashboard/client/build.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +pushd "$(dirname "$0")" +yarn build +yarn install +popd diff --git a/eosq/build.sh b/eosq/build.sh new file mode 100755 index 00000000..78dccee1 --- /dev/null +++ b/eosq/build.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +pushd "$(dirname "$0")" +yarn build +yarn install +popd