Don't bother building docs if not on main

Refs ##1442
This commit is contained in:
Simon Willison 2021-08-19 14:17:44 -07:00 committed by GitHub
commit 4eb3ae40fb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -36,6 +36,7 @@ jobs:
- name: Build fixtures.db
run: python tests/fixtures.py fixtures.db fixtures.json plugins --extra-db-filename extra_database.db
- name: Build docs.db
if: ${{ github.ref == 'refs/heads/main' }}
run: |-
cd docs
sphinx-build -b xml . _build