aboutsummaryrefslogtreecommitdiffstats
path: root/.builds/docs.yml
diff options
context:
space:
mode:
authorEugene Triguba <hello@eugenetriguba.com>2025-10-11 11:08:32 -0400
committerEugene Triguba <hello@eugenetriguba.com>2025-10-11 11:08:32 -0400
commit3cd15cb2e3aecc4c2e1e553d9ac7e4a7a67c46b1 (patch)
tree02db3787a0adc0a094611de91490da33581c837c /.builds/docs.yml
parentAdjust index.md to fix formatting of installation (diff)
downloadcli-3cd15cb2e3aecc4c2e1e553d9ac7e4a7a67c46b1.zip
Add support for versioned docs
Diffstat (limited to '.builds/docs.yml')
-rw-r--r--.builds/docs.yml10
1 files changed, 10 insertions, 0 deletions
diff --git a/.builds/docs.yml b/.builds/docs.yml
index dfa8ac9..4316feb 100644
--- a/.builds/docs.yml
+++ b/.builds/docs.yml
@@ -6,6 +6,9 @@ packages:
- mkdocs-material
- py3-regex
- hut
+ - jq
+ - rsync
+ - git
secrets:
- ac3eecc9-8fb0-4ed4-ae53-0472c093a1f1
sources:
@@ -13,4 +16,11 @@ sources:
tasks:
- deploy: |
cd bolt
+
+ if git describe --exact-match --tags HEAD 2>/dev/null; then
+ export VERSION=$(git describe --exact-match --tags HEAD)
+ else
+ export VERSION=latest
+ fi
+
./scripts/deploy-docs.sh