Skip to content

Commit 6cfa390

Browse files
chore: added an aditional check before deploying
This ensures that the page that is about to go live has no broken links on the page somewhere. See the previous commit on why I wanted to add this.
1 parent 3159011 commit 6cfa390

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/push--deploy-github-pages.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,15 @@ jobs:
4545
smmap==5.0.2 colorama==0.4.6 platformdirs==4.5.1 six==1.17.0
4646
- name: Build site with MkDocs
4747
run: mkdocs --verbose --color build --site-dir ./_site
48+
- name: Check the links
49+
uses: lycheeverse/lychee-action@v2.6.1
50+
with:
51+
fail: true
52+
token: ${{ secrets.GITHUB_TOKEN }}
53+
args: >
54+
./_site --verbose --max-concurrency 1
55+
--glob-ignore-case '**/*.{html,htm}'
56+
--hidden --no-progress
4857
- name: Upload artifact
4958
uses: actions/upload-pages-artifact@v4.0.0
5059
with: { path: ./_site }

0 commit comments

Comments
 (0)