diff options
| author | Eugene Triguba <hello@eugenetriguba.com> | 2025-10-11 11:08:32 -0400 |
|---|---|---|
| committer | Eugene Triguba <hello@eugenetriguba.com> | 2025-10-11 11:08:32 -0400 |
| commit | 3cd15cb2e3aecc4c2e1e553d9ac7e4a7a67c46b1 (patch) | |
| tree | 02db3787a0adc0a094611de91490da33581c837c /.builds/docs.yml | |
| parent | Adjust index.md to fix formatting of installation (diff) | |
| download | cli-3cd15cb2e3aecc4c2e1e553d9ac7e4a7a67c46b1.zip | |
Add support for versioned docs
Diffstat (limited to '.builds/docs.yml')
| -rw-r--r-- | .builds/docs.yml | 10 |
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 |