Merge remote-tracking branch 'origin/master' #94
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
name: Auto-build HTML | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/[email protected] | |
- name: Build | |
working-directory: ./ | |
run: | | |
echo "Making deployment dir - docs/" | |
mkdir docs | |
# | |
echo "Add README to docs/" | |
cp README.md docs/ | |
sudo apt-get install asciidoctor ruby -y | |
# | |
echo "Add standard to docs/" | |
asciidoctor standard/_standard.adoc -o docs/standard.html | |
cp -r standard/img docs/ | |
sed -i 's#img src="#img src="https://ausbigg.github.io/abis/#' docs/standard.html | |
# | |
echo "Add profile RDF to docs/" | |
cp profile.ttl docs/ | |
# | |
echo "Add Specification to docs/" | |
asciidoctor spec/00-master.adoc -o docs/specification.html | |
cp -r spec/img docs/ | |
sed -i 's#img src="#img src="https://ausbigg.github.io/abis/#' docs/specification.html | |
# | |
echo "Add Overview to docs/" | |
asciidoctor overview/_overview.adoc -o docs/overview.html | |
cp -r overview/*.png docs/ | |
sed -i 's#img src="#img src="https://ausbigg.github.io/abis/#' docs/overview.html | |
# | |
echo "Add JSON-LD Context to docs/" | |
cp context.json docs/ | |
# | |
echo "Add Component Models to docs/" | |
cp schemas/components/data-release.ttl docs/ | |
cp schemas/components/projects.ttl docs/ | |
cp schemas/components/tern-ont.ttl docs/ | |
# | |
echo "Add profiles of ABIS to docs/" | |
cp profiles/bdr/profile.ttl docs/bdr.ttl | |
# | |
echo "Add validator to docs/" | |
mkdir docs/validators | |
cp validators/*.ttl docs/validators | |
- name: Deploy 🚀 | |
uses: JamesIves/github-pages-deploy-action@releases/v3 | |
with: | |
BRANCH: gh-pages | |
FOLDER: docs |