This repository has been archived by the owner on Mar 30, 2022. It is now read-only.
-
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.
- Loading branch information
0 parents
commit 480e8e1
Showing
5 changed files
with
844 additions
and
0 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,34 @@ | ||
name: Auto-build HTML | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
|
||
- name: Build | ||
working-directory: ./ | ||
run: | | ||
echo "installing asciidoctor" | ||
sudo apt-get install asciidoctor ruby -y | ||
echo "Making deployment dir - docs/" | ||
mkdir docs | ||
echo "Add README to docs/" | ||
asciidoctor README.adoc -o docs/index.html | ||
echo "Add supermodel to docs/" | ||
asciidoctor 01-supermodel.adoc -o docs/supermodel.html | ||
sed -i 's#img src="#img src="https://surroundaustralia.github.io/loci-supermodel/#' docs/supermodel.html | ||
echo "Add supermodel RDF to docs/" | ||
cp rdf/*.ttl docs/ | ||
echo "Add images to docs/" | ||
cp -r img docs/ | ||
- name: Deploy 🚀 | ||
uses: JamesIves/github-pages-deploy-action@releases/v3 | ||
with: | ||
BRANCH: gh-pages | ||
FOLDER: docs |
Oops, something went wrong.