Skip to content

Commit

Permalink
Add initial port of 1.0.1 release to asciidoc
Browse files Browse the repository at this point in the history
  • Loading branch information
pmai committed Jul 3, 2022
1 parent 62cda99 commit 243126b
Show file tree
Hide file tree
Showing 105 changed files with 6,155 additions and 2 deletions.
59 changes: 59 additions & 0 deletions .github/workflows/build-spec.yml
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\/.*/'
Loading

0 comments on commit 243126b

Please sign in to comment.