Skip to content

Commit

Permalink
#57 release version variable fix
Browse files Browse the repository at this point in the history
  • Loading branch information
cserhatit committed Mar 21, 2024
1 parent e168f09 commit fb696dd
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
name: Deploy documentation
on:
push:
branches:
- main
# branches:
# - main

jobs:
generate-and-deploy:
Expand All @@ -15,16 +15,18 @@ jobs:
ref: main

- name: set-release-version
id: vars
run: |
sudo apt-get update && sudo apt-get install -y libxml2-utils
export POM_XML_PROJECT_VERSION=`echo -e 'setns x=http://maven.apache.org/POM/4.0.0\ncat /x:project/x:version/text()' | xmllint --shell pom.xml | grep -v /`
POM_XML_PROJECT_VERSION=`echo -e 'setns x=http://maven.apache.org/POM/4.0.0\ncat /x:project/x:version/text()' | xmllint --shell pom.xml | grep -v /`
echo "POM_XML_PROJECT_VERSION=$POM_XML_PROJECT_VERSION" >> $GITHUB_OUTPUT
echo CURRENT_VERSION=${POM_XML_PROJECT_VERSION}
# Includes the AsciiDoctor GitHub Pages Action to convert adoc files to html and publish to gh-pages branch
- name: Generate with asciidoctor image
uses: manoelcampos/asciidoctor-ghpages-action@v2
with:
pdf_build: true
asciidoctor_params: --attribute=nofooter --attribute release_version=${CURRENT_VERSION}
asciidoctor_params: --attribute=nofooter --attribute release_version=${{steps.vars.outputs.POM_XML_PROJECT_VERSION}}
# adoc_file_ext: .ascii # default is .adoc
source_dir: docs/ # default is .
ebook_main_adoc_file: index
Expand Down
6 changes: 3 additions & 3 deletions docs/tech-stack.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
= Technológiák

.Service (jar, war)
- Java 11+
- Java 17+
- Maven 3.3.0+
- Java EE 8
- Wildfly 26.1.1Final
- Java EE 10
- Wildfly 27.0.1Final

// TODO visszatenni, ha a docker-es dolgok is átherültek a gitHub-ra
// .Környezet
Expand Down

0 comments on commit fb696dd

Please sign in to comment.