🔧 Split MkDocs insiders build in CI to support building from PRs (#186)

This commit is contained in:
Sebastián Ramírez
2021-12-13 11:47:07 +01:00
committed by GitHub
parent dbcaa50c69
commit 14a9788eb1
3 changed files with 8 additions and 3 deletions

View File

@@ -56,7 +56,11 @@ jobs:
key: mkdocs-cards-${{ github.ref }}
path: .cache
- name: Build Docs
if: github.event.pull_request.head.repo.fork == true
run: python -m poetry run mkdocs build
- name: Build Docs with Insiders
if: github.event.pull_request.head.repo.fork == false
run: python -m poetry run mkdocs build --config-file mkdocs.insiders.yml
- name: Zip docs
run: python -m poetry run bash ./scripts/zip-docs.sh
- uses: actions/upload-artifact@v2