Skip to content

Commit

Permalink
Prepare release scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
Kashkovsky committed Apr 16, 2022
1 parent c6b4925 commit 1a4030d
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
project_name: hostmonitor
before:
hooks:
- make client
- make prepare-release
- go mod tidy
- go generate ./...
builds:
Expand Down
20 changes: 16 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,18 @@
monitor: clean client
monitor: clean-build client
go build
client:
rm -rf web/static && cd web/client && rm -rf dist && yarn && yarn build && cp -R ./dist ../static && cd ../..
clean:

prepare-release: clean client

client: clean-client
cd web/client && yarn && yarn build && cp -R ./dist ../static && cd ../..

clean: clean-build clean-client

clean-build:
rm -f hostmonitor
rm -rf dist

clean-client:
rm -rf web/static
rm -rf web/client/dist
rm -rf web/client/.parcel-cache

0 comments on commit 1a4030d

Please sign in to comment.