fix: broken links, add check to CI
All checks were successful
Website build and deploy / build (pull_request) Successful in 42s
All checks were successful
Website build and deploy / build (pull_request) Successful in 42s
This commit is contained in:
@@ -46,11 +46,19 @@ jobs:
|
||||
sed -i "s|__PROXY_URL__|${{ secrets.MATOMO_PROXY_URL }}|" static/config.php
|
||||
sed -i "s|__TOKEN_AUTH__|${{ secrets.MATOMO_TOKEN_AUTH }}|" static/config.php
|
||||
|
||||
- name: Check for broken links
|
||||
run: |
|
||||
if [ "${{ gitea.ref }}" = "refs/heads/main" ]; then
|
||||
mise linkcheck --offline || true
|
||||
else
|
||||
mise linkcheck --offline
|
||||
fi
|
||||
|
||||
- name: Build website with Hugo
|
||||
run: hugo
|
||||
run: mise run build
|
||||
|
||||
- name: Copy website to host
|
||||
uses: https://github.com/appleboy/scp-action@v1.0.0
|
||||
uses: https://github.com/appleboy/scp-action@ff85246acaad7bdce478db94a363cd2bf7c90345 # v1.0.0
|
||||
with:
|
||||
host: mehl.mx
|
||||
username: maxmehl
|
||||
|
||||
Reference in New Issue
Block a user