Skip to content

Commit

Permalink
#57 asciidoc release version
Browse files Browse the repository at this point in the history
  • Loading branch information
cserhatit committed Mar 20, 2024
1 parent 4376924 commit 89f109a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:

0 comments on commit 89f109a

Please sign in to comment.