Skip to content

Commit

Permalink
chore(ci): remove deprecated release commands
Browse files Browse the repository at this point in the history
  • Loading branch information
clok committed Mar 15, 2021
1 parent ba8ed8b commit e124bd4
Showing 1 changed file with 1 addition and 23 deletions.
24 changes: 1 addition & 23 deletions release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -83,32 +83,10 @@ git commit -m "feat(release): $VERSION"
h2 "Tagging version: $VERSION"
git tag $VERSION

note "Building assets to be uploaded"
make ci

note "Pushing branch: git push origin $(git rev-parse --abbrev-ref HEAD)"
git push origin $(git rev-parse --abbrev-ref HEAD)

note "Pushing tag: git push origin $VERSION"
git push origin $VERSION

if ! typeExists "github-release"; then
error "github-release is not installed"
note "To install run: go get -u github.com/github-release/github-release"

echo ""
note "What you still need to do:"
info "1. Update the release in github with compiled assets."
echo ""
else
h1 "Creating Release in Github"
github-release release -u GoodwayGroup -r gwvault -t $VERSION

for FILE in build/tgz/*; do
asset_name="$(basename $FILE)"
info "Uploading build asset: ${asset_name}"
github-release upload -u GoodwayGroup -r gwvault -t $VERSION -n "$asset_name" -f $FILE
done

success "Done!"
fi
success "Done!"

0 comments on commit e124bd4

Please sign in to comment.