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