-
Notifications
You must be signed in to change notification settings - Fork 4
45 lines (36 loc) · 1.04 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: github pages
on:
push:
branches:
- master
jobs:
deploy:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- name: Setup mdBook
uses: peaceiris/actions-mdbook@v1
with:
mdbook-version: '0.3.5'
- run: |
mdbook build
cp ./config/CNAME ./book/CNAME
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: gh-pages
publish_dir: ./book
# Broken link checker
- name: Check for broken links
id: link-report
uses: celinekurpershoek/link-checker@v1.0.1
with:
# Required:
url: 'https://book.integritee.network/'
# optional:
honorRobotExclusions: false
ignorePatterns: 'github,google'
recursiveLinks: true # Check all URLs on all reachable pages (could take a while)
- name: Get the result
run: echo "${{steps.link-report.outputs.result}}"