Repository navigation
Adapt to refactoring of nimib (#52) #21
This file contains hidden or 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: Generate nimiSlides docs | |
| on: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| gen: | |
| name: Generate and deploy docs | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: apt install | |
| run: sudo apt install -y libpcre3 libblas-dev liblapack-dev | |
| - uses: iffy/install-nim@v5 | |
| - name: Generate | |
| run: | | |
| set -e | |
| nimble install -g nimble | |
| nimble install -y -g https://github.com/zetashift/fontim | |
| nimble install -y -g https://github.com/HugoGranstrom/cdt@0.1.1 | |
| nimble sync -y | |
| nimble setup | |
| nimble docs | |
| nimble buildDocs | |
| nimble buildBook | |
| - name: Deploy | |
| uses: peaceiris/actions-gh-pages@v3 | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| publish_dir: ./docs |