Skip to content

Commit 034a50d

Browse files
committed
chore: tighten up release process & instructions for manual install
1 parent 4a302e2 commit 034a50d

5 files changed

Lines changed: 11 additions & 11 deletions

File tree

.github/workflows/release.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,9 @@ jobs:
3434
- name: Create GitHub release
3535
uses: softprops/action-gh-release@v2
3636
with:
37-
files: dist/hdi-*.tar.gz
37+
# Attach the `hdi` script too, so the manual install can pull:
38+
# https://github.com/grega/hdi/releases/latest/download/hdi
39+
files: |
40+
dist/hdi-*.tar.gz
41+
hdi
3842
generate_release_notes: true

README.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ $ hdi
1919
↑↓ navigate ⇥ sections ⏎ execute c copy q quit
2020
```
2121

22-
Works on macOS and Linux (probably WSL2 also).
22+
Works on macOS and Linux.
2323

2424
See the [website](https://hdi.md) for an interactive demo, and the [blog post](https://blog.gregdev.com/posts/2026-03-18-hdi-a-cli-tool-to-extract-run-commands-from-project-readmes/) for more background information and context.
2525

@@ -49,9 +49,7 @@ brew upgrade hdi
4949
### Manual
5050

5151
```bash
52-
mkdir -p ~/.local/bin
53-
curl -fsSL https://raw.githubusercontent.com/grega/hdi/main/hdi -o ~/.local/bin/hdi
54-
chmod +x ~/.local/bin/hdi
52+
mkdir -p ~/.local/bin && curl -fsSL https://github.com/grega/hdi/releases/latest/download/hdi -o ~/.local/bin/hdi && chmod +x ~/.local/bin/hdi
5553
```
5654

5755
Make sure `~/.local/bin` is on your `$PATH`.

website/src/components/Install.astro

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,11 @@
4242
class="is-hidden"
4343
>
4444
<div class="code-block">
45-
<pre><code>curl -fsSL https://raw.githubusercontent.com/grega/hdi/main/hdi \
46-
-o ~/.local/bin/hdi &amp;&amp; chmod +x ~/.local/bin/hdi</code></pre>
45+
<pre><code>mkdir -p ~/.local/bin && curl -fsSL https://github.com/grega/hdi/releases/latest/download/hdi \
46+
-o ~/.local/bin/hdi && chmod +x ~/.local/bin/hdi</code></pre>
4747
<button
4848
class="code-block-btn"
49-
data-copy="curl -fsSL https://raw.githubusercontent.com/grega/hdi/main/hdi -o ~/.local/bin/hdi && chmod +x ~/.local/bin/hdi"
49+
data-copy="mkdir -p ~/.local/bin && curl -fsSL https://github.com/grega/hdi/releases/latest/download/hdi -o ~/.local/bin/hdi && chmod +x ~/.local/bin/hdi"
5050
title="Copy to clipboard"
5151
>
5252
Copy

website/src/layouts/Layout.astro

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,6 @@ const { title } = Astro.props;
2929
(window.plausible.q = window.plausible.q || []).push(arguments);
3030
};
3131
</script>
32-
33-
<title>Astro Basics</title>
3432
</head>
3533
<body>
3634
<slot />

website/src/pages/index.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ import { Content as CommandTable } from "../content/commands.md";
5151
<section id="install-section">
5252
<h2>Install</h2>
5353
<Install />
54-
<p class="install-note">Works on macOS and Linux (probably WSL2 also).</p>
54+
<p class="install-note">Works on macOS and Linux.</p>
5555
</section>
5656

5757
<section class="demo-gif">

0 commit comments

Comments
 (0)