Skip to content

Commit 7051c09

Browse files
Merge pull request #12 from anolishq/feat/bundle-readme
feat(bundle): include README.txt in release bundles
2 parents 527e303 + 8310067 commit 7051c09

1 file changed

Lines changed: 32 additions & 0 deletions

File tree

.github/workflows/bundle-release.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,38 @@ jobs:
184184
}
185185
}' > staging/manifest.json
186186
187+
- name: Generate bundle README
188+
run: |
189+
PROFILE="${{ steps.tag.outputs.profile }}"
190+
VERSION="${{ steps.tag.outputs.version }}"
191+
cat > staging/README.txt <<EOF
192+
Anolis Bundle: ${PROFILE} v${VERSION}
193+
========================================
194+
195+
Quick Install (offline)
196+
-----------------------
197+
From the directory containing this README:
198+
199+
sudo ./install.sh --local .
200+
201+
This installs all components to /opt/anolis and enables systemd
202+
services. After install, access the workbench UI at:
203+
204+
http://$(hostname):3010
205+
206+
Verify
207+
------
208+
anolis-runtime --version
209+
systemctl status anolis-runtime
210+
211+
More Info
212+
---------
213+
See manifest.json for component versions and build metadata.
214+
Online docs: https://anolishq.github.io
215+
EOF
216+
# Strip leading whitespace from heredoc indentation
217+
sed -i 's/^ //' staging/README.txt
218+
187219
- name: Generate checksums
188220
run: |
189221
cd staging

0 commit comments

Comments
 (0)