Skip to content

Bump jiro4989/setup-nim-action from 1 to 2 (#145) #9

Bump jiro4989/setup-nim-action from 1 to 2 (#145)

Bump jiro4989/setup-nim-action from 1 to 2 (#145) #9

Workflow file for this run

---
name: docs
# yamllint disable-line rule:truthy
on:
push:
branches:
- master
env:
nim-src: src/${{ github.event.repository.name }}.nim
deploy-dir: .gh-pages
jobs:
docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: jiro4989/setup-nim-action@v2
with:
nim-version: 'devel'
- run: nimble install -Y
- run: nimble doc --index:on --project --git.url:https://github.com/${{ github.repository }} --git.commit:master --out:${{ env.deploy-dir }} ${{ env.nim-src }}
- name: "Copy to index.html"
run: cp ${{ env.deploy-dir }}/${{ github.event.repository.name }}.html ${{ env.deploy-dir }}/index.html
- name: Deploy documents
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ${{ env.deploy-dir }}