Commit 8faa597
committed
site: inject generated snippets at deploy, pinned to the release tag
Clones metaobjects at its latest v0.x tag and runs its committed injector over
www/, filling the data-snippet placeholders the previous commit put there.
node, never bun: setup-node is this workflow's only toolchain step and
ubuntu-latest has no bun, so a bun line would be command-not-found and — from
before "Upload artifact" — would fail the whole deploy. The injector is
dependency-free for that reason, so there is no install step either.
The tag is filtered to the v0.x npm line on purpose. metaobjects carries two tag
lines and an unfiltered `sort -V | tail -1` returns v7.20.12, a Maven-only cut
whose tree has no examples/showcase — so an unfiltered pin breaks permanently, not
once.
It SKIPS with a ::warning:: when the pinned tag predates snippet injection rather
than failing. Today's latest release, v0.24.4, is exactly that: no injector, no
payload. Failing hard there would take down every deploy of this site — unrelated
prose edits included — until the next metaobjects release. The skip can only
trigger before that release and stops triggering after it.
DO NOT PUSH until a metaobjects release ships the injector and the payload. Until
then this repo's placeholders would deploy as empty code blocks.1 parent d6a9f08 commit 8faa597
1 file changed
Lines changed: 34 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
48 | 82 | | |
49 | 83 | | |
50 | 84 | | |
| |||
0 commit comments