Skip to content

Commit

Permalink
fix goreleaser to rebuild JS content
Browse files Browse the repository at this point in the history
  • Loading branch information
Stéphane Duchesneau committed Apr 27, 2020
1 parent b6b1e2b commit 7713614
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 6 additions & 0 deletions dashboard/client/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash

pushd "$(dirname "$0")"
yarn build
yarn install
popd
6 changes: 6 additions & 0 deletions eosq/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash

pushd "$(dirname "$0")"
yarn build
yarn install
popd

0 comments on commit 7713614

Please sign in to comment.