diff --git a/.github/workflows/deploy-hugo-site.yml b/.github/workflows/deploy-hugo-site.yml index d76ec3ed..27b04ec7 100644 --- a/.github/workflows/deploy-hugo-site.yml +++ b/.github/workflows/deploy-hugo-site.yml @@ -5,7 +5,7 @@ on: # Run on pushes to the default branch push: branches: - - main + - ci/add_pre_commit_hook # Add an option to run this workflow manually from the Actions tab workflow_dispatch: @@ -26,7 +26,21 @@ defaults: shell: bash jobs: + check-links: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Link Checker + id: lychee + uses: lycheeverse/lychee-action@v1 + with: + args: --no-progress --include-fragments --exclude-path ./themes/ --exclude-path ./layouts/ . + # Don't fail action on broken links + fail: true + build-and-deploy: + needs: check-links runs-on: ubuntu-latest steps: diff --git a/README.md b/README.md index 8186c93c..b39c1031 100644 --- a/README.md +++ b/README.md @@ -37,3 +37,9 @@ pip install -r requirements.txt # Set up git hook scripts pre-commit install ``` + +The faulty link: [Developer Portal](https://deve.espressif.com/) + +Internal link: [link](./content/pages/contribution_guide/asciinema_casts/inde) + +Link in the same file: [internal](#use-pre-comm)