Merge pull request #58 from terminusdb-labs/raise_versions #118
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: Docs | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
docs: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install SWI Prolog on Linux | |
run: | | |
sudo apt-add-repository ppa:swi-prolog/stable | |
sudo apt-get update | |
sudo apt install swi-prolog-nox | |
- name: Generate docs | |
run: cargo doc --workspace --no-deps --exclude cargo-swipl --exclude '*example*' | |
- name: Generate index | |
run: echo '<!DOCTYPE html><html><head><meta http-equiv="Refresh" content="0; url=https://terminusdb-labs.github.io/swipl-rs/swipl/"/></head></html>' > target/doc/index.html | |
- name: Deploy to GH pages | |
uses: JamesIves/[email protected] | |
with: | |
branch: gh-pages | |
folder: target/doc |