forked from modelica/ssp-standard
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add initial port of 1.0.1 release to asciidoc
- Loading branch information
Showing
105 changed files
with
6,155 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
name: Build Spec | ||
|
||
on: | ||
push: | ||
branches-ignore: | ||
- 'temp/*' | ||
pull_request: | ||
branches: | ||
- 'main' | ||
- 'support/v1.0.x' | ||
|
||
jobs: | ||
|
||
build-spec: | ||
|
||
name: Build SSP Specification | ||
runs-on: ubuntu-18.04 | ||
steps: | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: List variables | ||
run: | | ||
[[ $GITHUB_REF_TYPE == "tag" ]] && REVNUMBER=${GITHUB_REF:11} || REVNUMBER=${GITHUB_SHA:0:7} | ||
echo GITHUB_SHA: $GITHUB_SHA | ||
echo GITHUB_REF_TYPE: $GITHUB_REF_TYPE | ||
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: Generate HTML | ||
uses: avattathil/asciidoctor-action@master | ||
with: | ||
program: "asciidoctor --destination-dir=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/* build/images | ||
- name: Create ZIP archive | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: SSP-Specification | ||
path: build/* | ||
if-no-files-found: error | ||
|
||
- name: Check HTML | ||
uses: chabad360/htmlproofer@master | ||
with: | ||
directory: build | ||
arguments: --only-4xx --url_ignore '/http:\/\/ssp-standard.org\/SSP1\/.*/' |
Oops, something went wrong.