Commit graph

36 commits

Author SHA1 Message Date
Mislav Marohnić
c32bcee4bb No need to configure production OAuth app on release anymore 2020-02-18 19:31:18 +01:00
Mislav Marohnić
5f6fd35a99 Enable CI for pull requests from forks 2020-02-17 12:52:48 +01:00
Mislav Marohnić
8aa46ab0f2
Merge pull request #276 from cli/rework-release
Add more binary builds, simplify release process
2020-01-30 19:33:21 +01:00
Mislav Marohnić
7232bdd7ee Retire copy-release-to-another-repo action 2020-01-29 16:13:07 +01:00
Mislav Marohnić
10d46fe869 Consistently use checkout@v2 2020-01-29 15:28:06 +01:00
Mislav Marohnić
bc40514506 Simplify building the MSI installer
Now that there is a ZIP archive to download, to avoid the complexities
of unzipping through Node.js we use hub to download the `.zip`, extract
it, and eventually upload the `.msi` back to the release.
2020-01-29 15:23:05 +01:00
Mislav Marohnić
7a1ae751de Use goreleaser to bump Homebrew formula 2020-01-29 14:00:25 +01:00
Mislav Marohnić
4e579e544c Make sure failed builds result in an error on Windows
By default, this was run on PowerShell on Windows, and even though the
Actions environment is supposed to immediately exit on failures[1], this
doesn't seem to have effect.

Switching to bash for unified behavior on all platforms.

[1]: https://help.github.com/en/actions/automating-your-workflow-with-github-actions/workflow-syntax-for-github-actions#exit-codes-and-error-action-preference
2020-01-29 12:22:13 +01:00
Mislav Marohnić
eb6541d8d6 Fix CI build 2020-01-23 11:03:06 +01:00
Mislav Marohnić
a3c808e22e Disable cancelling other CI builds after one fails
https://help.github.com/en/actions/automating-your-workflow-with-github-actions/workflow-syntax-for-github-actions#jobsjob_idstrategyfail-fast
2020-01-15 12:56:00 +01:00
Mislav Marohnić
a34d07aecb Improve .msi asset handling in upload-msi action
- Allow .msi file to be specified via input to action
- Delete obsolete .exe file after uploading .msi
2020-01-09 15:02:48 +01:00
Mislav Marohnić
2053809436 Merge pull request #201 from github/cleanup-scripts
Cleanup release scripts
2020-01-08 17:22:46 +01:00
Mislav Marohnić
0639ef8445 Cleanup unnecessary workflow bits 2020-01-08 17:17:40 +01:00
Mislav Marohnić
1f2277cdd3 Merge pull request #199 from github/generate-changelog
Generate changelog on release
2020-01-08 17:15:06 +01:00
Mislav Marohnić
7edde9306a Move Windows build scripts under script/ 2020-01-07 15:51:57 +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
Mislav Marohnić
82b0986a6c Use build matrix for CI job
https://help.github.com/en/actions/automating-your-workflow-with-github-actions/workflow-syntax-for-github-actions#jobsjob_idstrategymatrix
2020-01-06 20:42:18 +01:00
Corey Johnson
e3cc9111de Merge remote-tracking branch 'origin/master' into revert-184-release-notes 2020-01-06 09:37:18 -08:00
Nate Smith
2e192d7284 be more descriptive 2019-12-23 22:00:58 -06:00
Corey Johnson
2fa70eb2b3 Revert "Automatically collect PR titles into changelog.json" 2019-12-20 10:38:23 -08:00
vilmibm
5c05b60ab2 give unique names 2019-12-20 10:29:12 -06:00
vilmibm
2ba17b4126 build on all three supported OSs 2019-12-20 10:24:34 -06:00
Nate Smith
cbecae73b7 Merge pull request #184 from github/release-notes
Automatically collect PR titles into `changelog.json`
2019-12-19 16:08:53 -06:00
Corey Johnson
3f171066f6 Rename action 2019-12-19 13:16:06 -08: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
Corey Johnson
5c4a5ec6db Fix space 2019-12-17 16:20:38 -08:00
Corey Johnson
4e61c3ea73 Fix syntax 2019-12-17 16:19:30 -08:00
Corey Johnson
101bcc6ecd Add checkout 2019-12-17 16:16:27 -08:00
Corey Johnson
c9d8600107 Run correct file 2019-12-17 16:12:01 -08:00
Corey Johnson
33bad4098a Add change log 2019-12-17 14:37:41 -08:00
Mislav Marohnić
e7bebaeebc Inject production OAuth client ID+secret into release 2019-11-08 18:57:22 +01:00
Mislav Marohnić
daf291b6bc No need for GITHUB_TOKEN to bump-homebrew-formula
The download URL is a public resource
2019-11-08 18:57:22 +01:00
Mislav Marohnić
558376b059 Updates to copy-release action 2019-11-08 18:57:22 +01:00
Corey Johnson
7f70a342a3 Publish release for git tag 2019-11-08 18:53:09 +01:00
Mislav Marohnić
6d8af20e30 Stop requiring vendored dependencies in CI
We started vendoring dependencies because this was a practice that the Go community had for a while now to:

1. Speed up builds - no need to fetch dependencies every time;
2. Guard against 3rd-party downtime - CI passes even if hosts such as `gopkg.in` are down, or if someone deletes their GitHub repo/account hosting a particular module.

With Go 1.13 and GitHub Actions, however, we have these problems solved for free:
- The built-in goproxy caches dependencies and speeds up downloads;
- Octofactory ensures that dependencies are cached on our own infrastructure, guarding us from 3rd-party downtime.

With all this in mind, I feel that we don't have to require vendoring dependencies anymore.
2019-10-23 22:35:11 +02:00
Mislav Marohnić
334b1ae9fe Add CI 2019-10-04 09:10:17 +02:00