Skip to content

Refactor NbBlock

Refactor NbBlock #250

# build docs and uploads saves output as artifact for netlify_deploy_preview pipeline to be used
name: netlify_build_docs
on:
pull_request:
branches:
- main
jobs:
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: install nim
id: install_nim
uses: iffy/install-nim@v3
- name: install library dependencies
run: nimble install -y
- name: install doc dependencies
run: nimble docsdeps
- name: build docs
run: nimble docs
- run: echo Commit hash = ${{ github.event.pull_request.head.sha }}
- uses: actions/upload-artifact@v2
with:
name: build-${{ github.event.pull_request.head.sha }}
path: docs/
retention-days: 1
if-no-files-found: error