Commit graph

16 commits

Author SHA1 Message Date
Mislav Marohnić
83502fdbae Avoid failing if site docs are already up-to-date 2020-04-22 16:13:16 +02:00
Mislav Marohnić
60a67b852a Automatically generate site docs on release 2020-04-22 15:59:44 +02:00
Mislav Marohnić
030538871d Fix make site-docs 2020-03-03 23:34:32 +01:00
Morten Linderud
1b7009087e
[Makefile] Support reproducible builds
It's bad form to embed timestamps in binaries as it prevents
reproducible builds of the resulting binary.

The Reproducible Builds project defines SOURCE_DATE_EPOCH to help
reproduce binaries by allowing the date format to be overridden. This
patch adds support for this for GNU and BSD date.

Go 1.13 introduces `-trimpath` which strips build paths from all
compiled binaries. This enables people to reproduce the distributed cli
binary without having to recreate the build path.

https://reproducible-builds.org/specs/source-date-epoch/
https://reproducible-builds.org/docs/build-path/

Signed-off-by: Morten Linderud <morten@linderud.pw>
2020-02-13 11:22:04 +01:00
Mislav Marohnić
04aff00798 Update make site-docs to reflect latest setup
- Man pages are now placed under `/manual/`
- Use Jekyll `permalink` to avoid the `.html` extension
- Strip "SEE ALSO" and everything after it
2020-01-31 15:35:57 +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ć
a7f59bfb15 Improve site-docs make task
This ensures that upstream changes to the `gh-pages` branches are pulled
before trying to upload new site docs.
2019-12-16 15:59:46 +01:00
Mislav Marohnić
9425d33b3d Merge pull request #127 from github/help-site
Generate help docs to GitHub Pages
2019-12-05 18:37:46 +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
Mislav Marohnić
39080dc332 Generate help docs to GitHub Pages
`make site-docs`:
1. checks out the `gh-pages` branch into the `site/` directory;
2. regenerates `.md` help pages using Cobra;
3. commits and publishes updates.
2019-11-28 16:43:07 +01:00
Mislav Marohnić
4a5ed81577 Fix injecting version information into build from git
This was a typo. Note that Makefile is only used for building a
development version after cloning from git; the tagged release process
uses `.goreleaser.yml` and skips the Makefile.
2019-11-19 09:01:18 +01:00
Mislav Marohnić
e7bebaeebc Inject production OAuth client ID+secret into release 2019-11-08 18:57:22 +01:00
Mislav Marohnić
0bf3e7500c Add --version flag support 2019-10-31 12:14:55 +01:00
Mislav Marohnić
8016d80884 Create overridable Context interface 2019-10-17 02:25:59 +02:00
Mislav Marohnić
e867322ec4 Add Makefile 2019-10-07 16:58:29 +02:00