File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11name : Deploy Docs
2- run-name : ${{ format('{0} ({1})', github.workflow, github.event.inputs.build-refname || 'all') }}
32on :
4- workflow_dispatch :
5- inputs :
6- build-refname :
7- description : Enter git refname to build (e.g., main).
8- required : false
93 push :
104 branches : [ docs-build ]
5+ workflow_dispatch :
116permissions :
127 contents : write
138jobs :
2520 java-version : ' 25'
2621 distribution : ' liberica'
2722 cache : maven
28- - name : Set up refname build
29- if : github.event.inputs.build-refname != 'all'
30- run : |
31- git fetch --depth 1 https://github.com/$GITHUB_REPOSITORY "$BUILD_REFNAME"
32- export BUILD_REFNAME=${{ github.event.inputs.build-refname }}
33- echo "BUILD_REFNAME=$BUILD_REFNAME" >> $GITHUB_ENV
34- export BUILD_VERSION=$(git cat-file --textconv FETCH_HEAD:pom.xml | python3 -c "import xml.etree.ElementTree as xml; from sys import stdin; print(xml.parse(stdin).getroot().find('{http://maven.apache.org/POM/4.0.0}version').text)")
35- echo BUILD_VERSION=$BUILD_VERSION >> $GITHUB_ENV
3623 - name : Run Antora
3724 run : |
3825 ./build-docs.sh
You can’t perform that action at this time.
0 commit comments