Skip to content

Instantly share code, notes, and snippets.

@boina-n
Last active September 5, 2017 15:14
Show Gist options
  • Save boina-n/3fad0c34e7f31fe84381e024dbf79ffe to your computer and use it in GitHub Desktop.
Save boina-n/3fad0c34e7f31fe84381e024dbf79ffe to your computer and use it in GitHub Desktop.
publish_release_with_github-realease.md
export GITHUB_TOKEN= $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
version="2.0.0"
vtag="v$version"
username=boina-n
repo=cf-all-routes
lrname=linux-amd64-$repo-release
wrname=windows-amd64-$repo-release.exe
uname="$repo-$version"
utgzname="$repo $version.tgz"
git tag $vtag

For pre-release

github-release release     --user boina-n     --repo cf-all-routes     --tag v2.0.0     --name "cf-all-routes 2.0.0"     --description " - csv output
- displays org path and app name related to the route"     --pre-release
github-release release     --user boina-n     --repo cf-all-routes     --tag v2.0.0     --name "cf-all-routes 2.0.0"     --description " - csv output
- displays org path and app name related to the route"
go build
mv cf-all-routes $lrname

mv cf-all-routes.exe $wrname

github-release upload     --user $username     --repo $repo     --tag $vtag     --name $lrname --file $lrname
github-release upload     --user $username     --repo $repo     --tag $vtag     --name $wrname --file $wrname
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment