diff --git a/.github/workflows/deploy-hugo-site.yml b/.github/workflows/deploy-hugo-site.yml index d76ec3ed..d3d45c86 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,19 @@ 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/ . + build-and-deploy: + needs: check-links runs-on: ubuntu-latest steps: