Skip to content

Commit

Permalink
#57 release version with xmllint
Browse files Browse the repository at this point in the history
  • Loading branch information
cserhatit committed Mar 21, 2024
1 parent ab10f8a commit 3407358
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 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 @@ -16,8 +16,9 @@ jobs:

- name: set-release-version
run: |
export CURRENT_VERSION=`mvn -q -Dexec.executable="echo" -Dexec.args='${projects.version}' --non-recursive org.codehaus.mojo:exec-maven-plugin:1.3.1:exec`
echo CURRENT_VERSION=${CURRENT_VERSION}
apt -y install 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 /`
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
Expand Down

0 comments on commit 3407358

Please sign in to comment.