Skip to content

This repository is made just to try goreleaser and godownloader.

License

Notifications You must be signed in to change notification settings

Ind1eMonk3y/tests_goreleaser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This repository is made just to try goreleaser and godownloader.

Installation

Run this from your CLI to install this tool :

curl -o- -s https://raw.githubusercontent.com/Ind1eMonk3y/tests_goreleaser/main/install.sh | bash

You can also pass in a directory already on your PATH.

curl -o- -s https://raw.githubusercontent.com/Ind1eMonk3y/tests_goreleaser/main/install.sh | bash -s -- -b /usr/local/bin/

Notes

goreleaser

  • If you already have Go installed, install goreleaser by running this command or any of the commands listed here.
go install github.com/goreleaser/goreleaser
  • Inside your project working directory, generate the goreleaser configuration file by running this command.
goreleaser init
  • Customize the configuration for your needs and try it by running this command.
goreleaser --snapshot --skip-publish --rm-dist
  • Create the appropriate environment variable for the token

You could also paste the token in ~/.config/goreleaser/github_token.

More informations can be found here or here.

export GITHUB_TOKEN="YOUR_GH_TOKEN"
  • Add a tag and push your modifications
git tag -a v0.1.0 -m "First release"
git push origin v0.1.0
  • Make your release
goreleaser release --rm-dist

godownloader

  • If you already have Go installed, install godownloader by running this command or use any binaries from here.
go get github.com/goreleaser/godownloader
cd "$GOPATH/pkg/mod/github.com/goreleaser/[email protected]"
go install .
  • Go into your project working directory and run this command.
godownloader --repo=<user_name>/<project_name> > ./install.sh