From 7b9e29795ad1bbb1a020d7b3ac0fc7c36f6fa9a2 Mon Sep 17 00:00:00 2001 From: vilmibm Date: Thu, 21 Nov 2019 13:34:25 -0600 Subject: [PATCH 1/6] add nfpms section to go-releaser config --- .goreleaser.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.goreleaser.yml b/.goreleaser.yml index eef85417e..d84bd18bd 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -24,6 +24,14 @@ archives: format_overrides: - goos: windows format: zip + +nfpms: + - license: MIT + maintainer: GitHub + homepage: https://github.com/github/gh-cli + formats: + - deb + changelog: sort: asc filters: From f2064bb0f96043cefdb8678f6ec9ff307819e75c Mon Sep 17 00:00:00 2001 From: vilmibm Date: Thu, 21 Nov 2019 16:17:36 -0600 Subject: [PATCH 2/6] fix path issue and set git as dependency --- .goreleaser.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.goreleaser.yml b/.goreleaser.yml index d84bd18bd..a0cfc2e10 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -29,6 +29,9 @@ nfpms: - license: MIT maintainer: GitHub homepage: https://github.com/github/gh-cli + bindir: /usr/local + dependencies: + - git formats: - deb From 9c459659e7503b6784dff1abc9ee59ae96536a3f Mon Sep 17 00:00:00 2001 From: vilmibm Date: Fri, 22 Nov 2019 14:51:25 -0600 Subject: [PATCH 3/6] try out rpm builds --- .goreleaser.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.goreleaser.yml b/.goreleaser.yml index a0cfc2e10..dbddbb888 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -34,6 +34,7 @@ nfpms: - git formats: - deb + - rpm changelog: sort: asc From 23c7eeb6b0a5f6cd851847d70d2d32c611460657 Mon Sep 17 00:00:00 2001 From: vilmibm Date: Fri, 22 Nov 2019 14:51:52 -0600 Subject: [PATCH 4/6] add linux instructions and test release instructions to readme --- README.md | 31 +++++++++++++++++++++++++++++-- 1 file changed, 29 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 47f80bd8b..73470d65c 100644 --- a/README.md +++ b/README.md @@ -8,9 +8,27 @@ This tool is an endeavor separate from [github/hub](https://github.com/github/hu _warning, gh is in a very alpha phase_ +## OSX + `brew install github/gh/gh` -That's it. You are now ready to use `gh` on the command line. 🥳 +## Debian/Ubuntu Linux + +1. Download the latest `.deb` file from the [releases page](https://github.com/github/gh-cli/releases) +2. Install it with `sudo dpkg -i gh_0.2.2_linux_amd64.deb`, changing version number accordingly + +_(Uninstall with `sudo apt remove gh`)_ + +## Fedora/Centos Linux + +1. Download the latest `.rpm` file from the [releases page](https://github.com/github/gh-cli/releases) +2. Install it with `sudo rpm -ivh gh_0.2.2_linux_amd64.rpm`, changing version number accordingly + +## Other Linux + +1. Download the latest `_linux_amd64.tar.gz` file from the [releases page](https://github.com/github/gh-cli/releases) +2. `tar -xvf gh_0.2.2_linux_amd64.tar.gz`, changing version number accordingly +3. Copy the uncompressed `gh` somewhere on your `$PATH` (e.g. `sudo cp gh /usr/local/bin/`) # Process @@ -25,4 +43,13 @@ This can all be done from your local terminal. 1. `git tag 'vVERSION_NUMBER' # example git tag 'v0.0.1'` 2. `git push origin vVERSION_NUMBER` 3. Wait a few minutes for the build to run and CI to pass. Look at the [actions tab](https://github.com/github/gh-cli/actions) to check the progress. -4. Go to https://github.com/github/homebrew-gh/releases and look at the release +4. Go to and look at the release + +# Test a release + +A local release can be created for testing without creating anything official on the release page. + +1. `git tag 'v6.6.6' # some throwaway version number` +2. `env GH_OAUTH_CLIENT_SECRET=foobar GH_OAUTH_CLIENT_ID=1234 goreleaser --skip-publish --rm-dist` +3. Check and test files in `dist/` +4. `git tag -d v6.6.6 # delete the throwaway tag` From 234702717450f7a688e6f86da3547a522df94abf Mon Sep 17 00:00:00 2001 From: vilmibm Date: Fri, 22 Nov 2019 15:17:38 -0600 Subject: [PATCH 5/6] improve rpm instructions --- README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 73470d65c..aad7b2da8 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,9 @@ _(Uninstall with `sudo apt remove gh`)_ ## Fedora/Centos Linux 1. Download the latest `.rpm` file from the [releases page](https://github.com/github/gh-cli/releases) -2. Install it with `sudo rpm -ivh gh_0.2.2_linux_amd64.rpm`, changing version number accordingly +2. Install it with `sudo yum localinstall gh_0.2.2_linux_amd64.rpm`, changing version number accordingly + +_(Uninstall with `sudo yum remove gh`)_ ## Other Linux @@ -30,6 +32,8 @@ _(Uninstall with `sudo apt remove gh`)_ 2. `tar -xvf gh_0.2.2_linux_amd64.tar.gz`, changing version number accordingly 3. Copy the uncompressed `gh` somewhere on your `$PATH` (e.g. `sudo cp gh /usr/local/bin/`) +_(Uninstall with `rm`)_ + # Process - [Demo planning doc](https://docs.google.com/document/d/18ym-_xjFTSXe0-xzgaBn13Su7MEhWfLE5qSNPJV4M0A/edit) From 52a1575fc1c03f2bcce76803bf570053b7852bae Mon Sep 17 00:00:00 2001 From: Nate Smith Date: Tue, 26 Nov 2019 10:22:13 -0600 Subject: [PATCH 6/6] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index aad7b2da8..d8e9a6edc 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ This tool is an endeavor separate from [github/hub](https://github.com/github/hu _warning, gh is in a very alpha phase_ -## OSX +## macOS `brew install github/gh/gh`