Fix CI: upload-artifacts #289
This file contains 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
# 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@v4 | |
with: | |
name: build-${{ github.event.pull_request.head.sha }} | |
path: docs/ | |
retention-days: 1 | |
if-no-files-found: error |