Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Script to release binary to github #3

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jhutar
Copy link

@jhutar jhutar commented Jan 26, 2021

Based on https://github.com/oliver006/redis_exporter/blob/master/release-github-binaries.sh

Fixes #2

I assume it is obvious for any golang person, but I also had to add ght to my path like this before running the script:

export PATH="$PATH:$HOME/go/bin/"

And to get GITHUB_TOKEN environmental value, you need to create it in GH account Settings -> Developer settings -> Personal access tokens (use 'public_repo' scope). There are other ways how to configure this secret, but now script enforces env variable. See https://github.com/tcnksm/ghr#github-api-token

Also script assumes you are on x86_64 architecture on Linux. I did not wanted to start with cross-arch builds as that is completely new land to me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

would it make sense to have binary releases on github?
1 participant