diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml new file mode 100644 index 0000000..1bc7c26 --- /dev/null +++ b/.github/workflows/docs.yml @@ -0,0 +1,25 @@ +name: Generate nimiSlides docs + +on: + push: + branches: + - master + +jobs: + gen: + name: Generate and deploy docs + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - uses: iffy/install-nim@v4 + - name: Generate + run: | + nimble install -y + nimble buildDocs + nimble docs + - name: Deploy + uses: peaceiris/actions-gh-pages@v3 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./docs \ No newline at end of file