Skip to content

Commit dc9b3b6

Browse files
committed
ci: Update GitHub Pages deployment workflow and force rebuild
Signed-off-by: Aaron Lippold <[email protected]>
1 parent 44782b8 commit dc9b3b6

File tree

2 files changed

+12
-9
lines changed

2 files changed

+12
-9
lines changed

.github/workflows/deploy-docs.yml

+11-9
Original file line numberDiff line numberDiff line change
@@ -61,19 +61,21 @@ jobs:
6161
npm run links || echo "Link check found issues, review logs for details"
6262
continue-on-error: true
6363

64-
# Build and validate documentation
65-
- name: Build documentation with validation
64+
# Build documentation
65+
- name: Build documentation
6666
run: mkdocs build --strict
67-
68-
# Deploy to GitHub Pages using mkdocs
67+
68+
# Deploy to GitHub Pages
6969
- name: Deploy to GitHub Pages
70-
run: |
71-
git config --local user.email "github-actions[bot]@users.noreply.github.com"
72-
git config --local user.name "github-actions[bot]"
73-
mkdocs gh-deploy --force
70+
uses: JamesIves/github-pages-deploy-action@v4
71+
with:
72+
folder: site
73+
branch: gh-pages
74+
clean: true
7475

7576
# Verify deployment
7677
- name: Verify deployment
7778
run: |
7879
echo "Documentation deployed to GitHub Pages"
79-
echo "Visit https://mitre.github.io/kube-secure-scanner/ to view the documentation"
80+
echo "Visit https://mitre.github.io/kube-secure-scanner/ to view the documentation"
81+
echo "Note: It may take a few minutes for changes to propagate"

mkdocs.yml

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
site_name: Kube Secure Scanner
22
site_url: https://mitre.github.io/kube-secure-scanner/
33
site_description: A flexible, security-focused framework for scanning containers in Kubernetes environments with multiple scanning engines
4+
# Force rebuild with a small change
45
site_author: MITRE SAF Team
56
copyright: © The MITRE Corporation. Brought to you by the <a href="https://saf.mitre.org">MITRE Security Automation Framework (SAF)</a>
67

0 commit comments

Comments
 (0)