Skip to content

Commit

Permalink
[CI] Don't build changes when versions are same with release
Browse files Browse the repository at this point in the history
  • Loading branch information
Akkadius committed Sep 24, 2022
1 parent b0c0efd commit c65a217
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/build-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,11 @@

cwd=$(pwd)

# shellcheck disable=SC2046
if [ $(curl -s "https://api.github.com/repos/Akkadius/spire/tags" | jq -r '.[0].name' | sed 's/v//') = $(cat package.json | jq -r '.version') ]; then echo "Version tag is same as latest release exiting build"; exit; else echo "Local version different from remote, building..."; fi

# packr for packing web assets into binary
go install github.com/gobuffalo/packr/packr
#go install github.com/gobuffalo/packr/packr

# Copy local asset images (This step is part of install now)
make build-assets
Expand Down

0 comments on commit c65a217

Please sign in to comment.