Merge pull request #5 from mje-s/main #5
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: | |
- main | |
permissions: | |
contents: write | |
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 model to docs/" | |
asciidoctor 00-master.adoc -o docs/model.html | |
echo "Add RDF files to docs/" | |
cp *.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 |