@@ -3,20 +3,21 @@ name: Build Layered Standard References
33on :
44 push :
55 branches-ignore : [ 'temp/*' ]
6- tags :
7- - ' *'
6+ tags : ['*']
87 pull_request :
98 branches : [ main ]
109
1110jobs :
12- build-ls-xcp :
13- name : Build Layered Standard References
11+ build-ls-ref :
1412
1513 runs-on : ubuntu-24.04
1614
1715 steps :
18- - name : checkout
19- uses : actions/checkout@v4
16+ - name : Checkout
17+ uses : actions/checkout@v4.1.7
18+ with :
19+ submodules : recursive
20+
2021 - name : Generate revnumber
2122 run : |
2223 [[ $GITHUB_REF_TYPE == "tag" ]] && REVNUMBER=${GITHUB_REF:11} || REVNUMBER=${GITHUB_SHA:0:7}
@@ -25,26 +26,28 @@ jobs:
2526 echo GITHUB_REF: $GITHUB_REF
2627 echo REVNUMBER: $REVNUMBER
2728 echo "REVNUMBER=$REVNUMBER" >> $GITHUB_ENV
28- - name : Create build directory
29- run : |
30- mkdir -p build/schema
31- mkdir -p build/images
32- - name : build layered standard References
29+
30+ - name : Generate HTML
3331 uses : avattathil/asciidoctor-action@master
3432 with :
35- program : " asciidoctor -D build --backend=html5 --attribute=revnumber=${{ env.REVNUMBER }} --attribute=revdate=$(date +%F) docs/index.adoc"
36- - name : Copy resources
37- run : |
38- cp LICENSE.txt build
39- cp schema/*.xsd build/schema
40- cp docs/images/favicon.ico build/images
41- cp docs/images/*.svg build/images
42- - name : archive layered standard References
43- uses : actions/upload-artifact@v4
33+ program : asciidoctor --attribute=revnumber=${{ env.REVNUMBER }} --attribute=revdate=$(date +%F) docs/index.adoc
34+
35+ - name : Copy license
36+ run : cp LICENSE.txt docs
37+
38+ - name : Create ZIP archive
39+ uses : actions/upload-artifact@v5
4440 with :
45- name : FMI-LS-Ref
46- path : build/*
41+ name : FMI-LS-REF
42+ path : |
43+ docs/index.html
44+ docs/LICENSE.txt
45+ docs/images/*.svg
46+ docs/theme/css/*.css
47+ docs/theme/images/*.svg
48+ docs/theme/js/*.js
4749 if-no-files-found : error
50+
4851 - name : extract branch name
4952 id : extract_branch
5053 shell : bash
0 commit comments