Commit graph

57 commits

Author SHA1 Message Date
Andy Feller
5ecdf166fb Update deployment workflow for final HSM solution
This applies the changes from the separate Windows HSM signing prototype development to the official deployment workflow including:

1. Use of Azure Code Signing client
2. Sourcing signtool.exe from runner
3. Moving from batch to PowerShell for Windows signing script
4. Using the same signing process for .exe and .msi
2023-12-14 13:15:38 -05:00
Mislav Marohnić
8b987e2deb
New deployment workflow
Add ability to trigger deployments without having to push a git tag
2023-05-09 20:23:54 +02:00
Aleksei Khudiakov
80f91af171
Move completions generation from goreleaser to Makefile 2023-04-08 11:31:09 +10:00
Aleksei Khudiakov
be45eedc18
Generate completion scripts for bundling in rpm and deb on release 2023-04-08 08:55:45 +10:00
beret
1fbcdf52cc
Enable darwin arm64 builds in goreleaser (#4435) 2023-02-17 15:24:51 +01:00
Mislav Marohnić
2097899a4d
Disable gh update checker in our precompiled binaries
This is because most people install gh through a package manager, and people usually prefer for their package manager to check for updates instead of the gh process doing it at runtime.
2023-02-06 19:12:58 +01:00
Mislav Marohnić
ea4b410df5
downgrade ubuntu to fix osslsigncode 2022-12-22 21:56:11 +01:00
Sam Coe
649fb35ece
Fix up bindir for new version of goreleaser (#6621) 2022-11-15 11:40:30 +02:00
Alexandre Zollinger Chohfi
d1a0f72cd8 Added Arm64 compilation 2022-05-25 16:47:50 -07:00
Mislav Marohnić
3e0db567e8
Rotate our Windows signing certificates (#5196)
- The certificate pfx file is now read from WINDOWS_CERT_PFX
- The password to decode the pfx is in WINDOWS_CERT_PASSWORD
- Quit reading from desktop-secrets repo
- Switch osslsigncode to take in pfx instead of individual certs
- 🔥 obsolete setup scripts
2022-02-15 17:23:39 +01:00
nate smith
e6b4fe632b skip signing if env vars not in place 2022-01-14 16:32:56 -06:00
nate smith
f30b7dbf72 Work around parallel race condition problems 2022-01-13 13:38:09 -06:00
nate smith
e56c78a364 Sign Windows .exes in a post-build hook 2022-01-13 13:37:57 -06:00
Mislav Marohnić
31c7181297 Refresh man pages
- Fix name of man pages for all but the toplevel command
- Set title of all man pages to "GitHub CLI manual"
- Include gh version information in man pages
- Clean up rendering of flags section
- List subcommands for every command
2021-12-20 18:11:31 +01:00
Mislav Marohnić
11fbb60ae7 Rename the module to "github.com/cli/cli/v2" 2021-08-25 12:41:30 +02:00
Mislav Marohnić
5a46c1cab6
Merge pull request #4043 from cli/upgrade-goreleaser
This reverts commit 85d0447.
2021-07-28 21:07:29 +02:00
Mislav Marohnić
85d0447a6e
Revert "Update GoReleaser to v0.172.1" 2021-07-20 21:39:50 +02:00
chemotaxis
f82750dfe6 Update goreleaser config
`nfpms.files` is deprecated: <https://goreleaser.com/deprecations/#nfpmsfiles>

```shell
goreleaser version 0.172.1
commit: 32a44ab928879bb32c1e266b80de32e07d5d6721
```

Before this commit, `goreleaser check` prints this:

```shell
$goreleaser check
   • loading config file       file=.goreleaser.yml
   ⨯ command failed            error=yaml: unmarshal errors:
  line 67: field files not found in type config.NFPM
```
2021-07-01 03:04:02 -04:00
vilmibm
8f0c388ad6 Merge remote-tracking branch 'origin/trunk' into arm32 2020-12-14 14:08:26 -08:00
vilmibm
4a30800eb9 add arm build for raspberry pi 2020-12-14 14:05:50 -08:00
Pete Woods
03949a4d72
Build static binaries
Fixes #2555
2020-12-07 15:49:58 +00:00
Sam Coe
3fcd791c94
Update LDFLAGS in goreleaser 2020-10-26 09:11:10 +03:00
Mislav Marohnić
38ef66a06f Improve release titles 2020-10-06 15:01:55 +02:00
Mislav Marohnić
0a17259e3c Bump scoop bucket manually on release
Goreleaser can no longer do this for us since we're always creating a
draft release initially.
2020-10-01 19:09:14 +02:00
Yusuf Sahin HAMZA
c7aee8ddc4
Fix debian executable path 2020-09-18 16:16:56 +03:00
Mislav Marohnić
44a500e50f Remove Homebrew tap from goreleaser config
Our tap is now deprecated in favor of `gh` from homebrew-core
2020-09-07 16:28:51 +02:00
Mislav Marohnić
a983131479 Exercise most of the release process on prereleases
- deb and rpm packages are now built for prereleases
- consolidate setup for deb & rpm
- man pages are generated for prereleases
- the `cli.github.com` site is only pushed to on full releases

Bonus:
- only publish the GitHub release after the Windows MSI is uploaded
- hub does not need downloading
2020-09-07 16:11:27 +02:00
Mislav Marohnić
b6206aa036 Update the branch name in the github/gh/gh brew formula 2020-07-01 16:14:11 +02:00
ShubhankarKG
21a96baf93 Added description to nfpms 2020-06-15 17:45:04 +05:30
Mislav Marohnić
6385c32031 Include license information in release archives 2020-05-20 13:15:44 +02:00
Mislav Marohnić
a9e83dcc36 Tweak release process re: man pages 2020-05-20 13:07:48 +02:00
Mark Furland
6387078532 add make manpages hook and fix makefile 2020-05-19 22:40:14 -04:00
Mark Furland
db2fac93ea generate manpages into ./share/man/man1 2020-05-19 18:43:26 -04:00
Mark Furland
dffb55889c install manpages for homebrew 2020-05-19 15:58:27 -04:00
Mark Furland
92130d91ba Minimal manpage generation from cobra 2020-05-12 09:10:09 -04:00
Nate Smith
957fb6635f
Merge pull request #459 from sh7dm/feat/arm64
Release for arm64 linux
2020-02-18 15:33:05 -06:00
Mislav Marohnić
c32bcee4bb No need to configure production OAuth app on release anymore 2020-02-18 19:31:18 +01:00
Dmitry Sharshakov
e20dc5fbfd Release for arm64 linux 2020-02-15 13:23:37 +03:00
vilmibm
0da478d5d7 use new goreleaser scoop config 2020-02-06 13:03:20 -06:00
vilmibm
a274a35b07 put gh.rb in the right place 2020-02-04 11:55:53 -06:00
vilmibm
0dcec2c231 add scoop config to goreleaser 2020-02-03 18:59:28 -06:00
Mislav Marohnić
1be8bb990d Setup fish completion when installing with Homebrew 2020-01-30 21:36:56 +01:00
Mislav Marohnić
7a1ae751de Use goreleaser to bump Homebrew formula 2020-01-29 14:00:25 +01:00
Mislav Marohnić
1c74227ed7 Use new repo name for update notifier and changelog 2020-01-28 18:22:29 +01:00
Mislav Marohnić
a710893fc1 Rename to cli/cli 2020-01-24 16:08:52 +01:00
Mislav Marohnić
02f5a68937 Move main package to under cmd/
It's a Go convention that main packages (one per each binary produced) are
scoped under `cmd/`.

https://github.com/github/go-lang/blob/master/docs/style-guide.md#directory-structure-and-filenames-layout
2020-01-23 10:45:28 +01:00
Mislav Marohnić
2271f4cdb6 Generate changelog on release
The changelog is generated using the git log of pull request merges
since the last tagged release, and is in the following format:

    * {PR title} #{PR number}
2020-01-07 13:55:56 +01:00
vilmibm
06d90d5e46 automatically produce MSI files for releases
This commit:

- Adds config for building Windows installers
- Adds an action for fetching exe files built by goreleaser
- Adds an action for building Windows installers
- Adds an action for adding MSI files to an existing GH release
- Adds MSI signing to our release flow
- Disables homebrew formula bumping for prereleases
- Allows the release asset copying action to copy windows assets
2019-12-19 15:03:03 -06:00
Mislav Marohnić
1d9ad0001b Simplify date format in gh version information
Currently, goreleaser injects the date that includes time & timezone
information, but this is visually noisy. This configures it to inject
the simpler `2019-12-16` date format into the build, which also matches
what our Makefile does in development.
2019-12-16 15:56:45 +01:00
Mislav Marohnić
ba0a441e23 Allow configuring the update notifier from the outside
To test the update notifier:

    rm -f bin/gh; GH_VERSION=v0.2.3 LDFLAGS='-X main.updaterEnabled=github/homebrew-gh' make
2019-12-04 15:07:10 +01:00