File tree Expand file tree Collapse file tree 5 files changed +554
-0
lines changed Expand file tree Collapse file tree 5 files changed +554
-0
lines changed Original file line number Diff line number Diff line change 1+ # Set the default behavior, in case people don't have core.autocrlf set.
2+ * text =auto
3+
4+ # Explicitly declare text files we want to always be normalized and converted
5+ # to native line endings on checkout.
6+ * .adoc text
7+ * .c text
8+ * .csv text
9+ * .css text
10+ * .h text
11+ * .html text
12+ * .md text
13+ * .ps1 text
14+ * .py text
15+ * .txt text
16+ * .xml text
17+ * .xsd text
18+ * .yml text
19+ .gitattributes text
20+ .gitignore text
21+ .gitmodules text
Original file line number Diff line number Diff line change 1+ name : Build Guides
2+
3+ on :
4+ push :
5+ branches-ignore : [ 'temp/*' ]
6+ pull_request :
7+ branches : [ main ]
8+
9+ jobs :
10+ build-guides :
11+ name : Build FMI-LS-BUS Guides
12+
13+ runs-on : ubuntu-latest
14+
15+ steps :
16+ - name : checkout
17+ uses : actions/checkout@v3
18+ - name : prepare
19+ run : mkdir build && mkdir build/ls-bus-guide
20+ - name : build LS-BUS implementers guide
21+ uses : avattathil/asciidoctor-action@master
22+ with :
23+ program : " asciidoctor -D build/ls-bus-guide --backend=html5 --attribute=revnumber=${GITHUB_REF#refs/heads/}-$GITHUB_SHA --attribute=revdate=$(date +%F) ls-bus-guide/index.adoc"
24+ - name : copy images
25+ run : tar cf - ls-bus-guide/images | tar xfC - build
26+ - name : archive LS-BUS implementers guide
27+ uses : actions/upload-artifact@v4
28+ with :
29+ name : LS-BUS-Guide
30+ path : build/ls-bus-guide/*
31+ if-no-files-found : error
32+ - name : extract branch name
33+ id : extract_branch
34+ shell : bash
35+ run : echo "branch=$(echo ${GITHUB_REF#refs/heads/})" >> $GITHUB_OUTPUT
36+ - name : deploy
37+ if : github.ref == 'refs/heads/main' && github.event_name == 'push'
38+ 39+ with :
40+ github_token : ${{ secrets.GITHUB_TOKEN }}
41+ publish_dir : build
42+ destination_dir : ${{ steps.extract_branch.outputs.branch }}
43+ enable_jekyll : true
Original file line number Diff line number Diff line change 1+ ls-bus-guide /index.html
You can’t perform that action at this time.
0 commit comments