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 1
1
name : build-test-deploy-book
2
2
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
5
12
6
13
# This job installs dependencies, build the book, and pushes it to `gh-pages`
7
14
jobs :
53
60
with :
54
61
github_token : ${{ secrets.GITHUB_TOKEN }}
55
62
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