16
16
deploy :
17
17
runs-on : ubuntu-latest
18
18
steps :
19
- - uses : actions/checkout@v4
19
+ - name : Checkout repository
20
+ uses : actions/checkout@v4
20
21
with :
21
22
fetch-depth : 0
23
+ token : ${{ secrets.GITHUB_TOKEN }}
22
24
23
25
# Set up Python and cache dependencies
24
26
- name : Set up Python
39
41
uses : actions/setup-node@v3
40
42
with :
41
43
node-version : 18
42
- cache : npm
44
+ cache : ' npm'
43
45
cache-dependency-path : docs/package-lock.json
44
46
45
47
# Install Node.js dependencies
@@ -52,13 +54,26 @@ jobs:
52
54
working-directory : ./docs
53
55
run : npm run lint || echo "Lint check skipped, continuing deployment"
54
56
57
+ # Check for broken links or references (but don't fail the build)
58
+ - name : Check for broken links
59
+ run : |
60
+ cd docs
61
+ npm run links || echo "Link check found issues, review logs for details"
62
+ continue-on-error : true
63
+
55
64
# Build and validate documentation
56
65
- name : Build documentation with validation
57
66
run : mkdocs build --strict
58
-
59
- # Deploy to GitHub Pages
60
- - name : Deploy documentation
67
+
68
+ # Deploy to GitHub Pages using mkdocs
69
+ - name : Deploy to GitHub Pages
61
70
run : |
62
71
git config --local user.email "github-actions[bot]@users.noreply.github.com"
63
72
git config --local user.name "github-actions[bot]"
64
- mkdocs gh-deploy --force
73
+ mkdocs gh-deploy --force
74
+
75
+ # Verify deployment
76
+ - name : Verify deployment
77
+ run : |
78
+ echo "Documentation deployed to GitHub Pages"
79
+ echo "Visit https://mitre.github.io/kube-cinc-secure-scanner/ to view the documentation"
0 commit comments