Skip to content

Bump actions/cache from 2 to 3 (#49) #11

Bump actions/cache from 2 to 3 (#49)

Bump actions/cache from 2 to 3 (#49) #11

Workflow file for this run

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