From 89f109ad08e69728b5a8a84315b36cd305e96c18 Mon Sep 17 00:00:00 2001 From: Tamas Cserhati Date: Wed, 20 Mar 2024 15:10:16 +0100 Subject: [PATCH] #57 asciidoc release version --- .github/workflows/docs.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 169aa421..ef399d6f 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -19,10 +19,13 @@ jobs: uses: manoelcampos/asciidoctor-ghpages-action@v2 with: pdf_build: true - # asciidoctor_params: --attribute=nofooter + asciidoctor_params: --attribute release_version=${CURRENT_VERSION} # adoc_file_ext: .ascii # default is .adoc source_dir: docs/ # default is . ebook_main_adoc_file: index # slides_build: true - # pre_build: + pre_build: + CURRENT_VERSION=$(sed -rn 's/(^VERSION=)([^-]+)(-SNAPSHOT|)$/\2/p' .env) + echo current version is ${CURRENT_VERSION} + echo "CURRENT_VERSION=${CURRENT_VERSION}" >> $GITHUB_OUTPUT # post_build: