Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 23 additions & 18 deletions .github/workflows/build-ls-struct.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,11 @@ jobs:
runs-on: ubuntu-24.04

steps:
- name: checkout
uses: actions/checkout@v4
- name: Checkout
uses: actions/checkout@v4.1.7
with:
submodules: recursive

- name: Generate revnumber
run: |
[[ $GITHUB_REF_TYPE == "tag" ]] && REVNUMBER=${GITHUB_REF:11} || REVNUMBER=${GITHUB_SHA:0:7}
Expand All @@ -24,26 +27,28 @@ jobs:
echo GITHUB_REF: $GITHUB_REF
echo REVNUMBER: $REVNUMBER
echo "REVNUMBER=$REVNUMBER" >> $GITHUB_ENV
- name: Create build directory
run: |
mkdir -p build/schema
mkdir -p build/images
- name: build layered standard struct

- name: Generate HTML
uses: avattathil/asciidoctor-action@master
with:
program: "asciidoctor -D build --backend=html5 --attribute=revnumber=${{ env.REVNUMBER }} --attribute=revdate=$(date +%F) docs/index.adoc"
- name: Copy resources
run: |
cp LICENSE.txt build
cp schema/*.xsd build/schema
cp docs/images/favicon.ico build/images
cp docs/images/*.svg build/images
- name: archive layered standard struct
uses: actions/upload-artifact@v4
program: asciidoctor --attribute=revnumber=${{ env.REVNUMBER }} --attribute=revdate=$(date +%F) docs/index.adoc

- name: Copy license
run: cp LICENSE.txt docs

- name: Create ZIP archive
uses: actions/upload-artifact@v5
with:
name: FMI-LS-STRUCT
path: build/*
name: FMI-LS-Struct
path: |
docs/index.html
docs/LICENSE.txt
docs/images/*.svg
docs/theme/css/*.css
docs/theme/images/*.svg
docs/theme/js/*.js
if-no-files-found: error

- name: extract branch name
id: extract_branch
shell: bash
Expand Down
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "docs/theme"]
path = docs/theme
url = git@github.com:modelica/ma-asciidoctor-theme.git
102 changes: 0 additions & 102 deletions docs/docinfo.html

This file was deleted.

Loading