octomation / go-tool

🧩 Template for a typical CLI-tool written on Go.
https://go-tool.octolab.org/
MIT License
4 stars 1 forks source link

dist: publish download script together with docs #45

Open kamilsk opened 1 year ago

kamilsk commented 1 year ago

Motivation: simplicity.

Details are here https://github.com/evanw/esbuild/releases/tag/v0.16.0.

Publish a shell script that downloads esbuild directly

In addition to all of the existing ways to install esbuild, you can now also download esbuild directly like this:

curl -fsSL https://esbuild.github.io/dl/latest | sh

See https://github.com/esbuild/esbuild.github.io/tree/gh-pages as an example.

Result

$ curl -fsSL https://octomation.github.io/go-tool/dl/latest | sh
# instead of
$ curl -fsSL https://raw.githubusercontent.com/octomation/go-tool/main/bin/install | sh
kamilsk commented 1 year ago

The correct way is to publish it to https://github.com/octomation/install.

Combine with