Skip to content

Commit

Permalink
Merge pull request #912 from cloudskiff/revert-911-fix/releasePublish
Browse files Browse the repository at this point in the history
Fix build script
  • Loading branch information
eliecharra authored Aug 4, 2021
2 parents 2f9f85b + 0542aef commit ca939c7
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ goreleaser check

FLAGS=""
FLAGS+="--rm-dist "
FLAGS+="--snapshot "
FLAGS+="--parallelism 2 "

CMD="release"
Expand All @@ -30,12 +29,16 @@ fi

# Only CI system should publish artifacts
# We may not want to sign artifacts in dev environments
if [ "$CI" == true ] && [ "$CMD" == "release" ]; then
if [ "$CI" != true ] && [ "$CMD" == "release" ]; then
FLAGS+="--skip-announce "
FLAGS+="--skip-publish "
FLAGS+="--skip-sign "
fi

if [ "$CI" != true ]; then
FLAGS+="--snapshot "
fi

CMD="goreleaser ${CMD} ${FLAGS}"

echo "+ Building using goreleaser"
Expand Down

0 comments on commit ca939c7

Please sign in to comment.