File tree Expand file tree Collapse file tree 1 file changed +19
-2
lines changed Expand file tree Collapse file tree 1 file changed +19
-2
lines changed Original file line number Diff line number Diff line change 11name : build-test-deploy-book
22
3- # Run on pushes and pull requests
4- on : [push, pull_request]
3+ # Only build PRs, the main branch, and releases. Pushes to branches will only
4+ # be built when a PR is opened. This avoids duplicated buids in PRs comming
5+ # from branches in the origin repository (1 for PR and 1 for push).
6+ # This came from Leo's work with fatiando
7+ on :
8+ pull_request :
9+ push :
10+ branches :
11+ - main
512
613# This job installs dependencies, build the book, and pushes it to `gh-pages`
714jobs :
5360 with :
5461 github_token : ${{ secrets.GITHUB_TOKEN }}
5562 publish_dir : ./_build/html
63+
64+ # Test for bad links and ensure alt tags for usability
65+ - name : Check HTML using htmlproofer
66+ uses : chabad360/htmlproofer@master
67+ with :
68+ directory : ' _build/html'
69+ arguments : |
70+ --ignore-files "/.+\/_static\/.+/"
71+
72+
You can’t perform that action at this time.
0 commit comments