Skip to content

Commit

Permalink
chore: fix hugo
Browse files Browse the repository at this point in the history
  • Loading branch information
StfBauer committed Nov 20, 2024
1 parent 42eb01c commit 38ef5f1
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/hugo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ jobs:
submodules: recursive
- name: Fetch main branch
run: git fetch origin main:main
- name: Setup Pages
id: pages
uses: actions/configure-pages@v4
- name: Setup Node.js 20
uses: actions/setup-node@v4
with:
Expand All @@ -61,6 +64,12 @@ jobs:
run: |
find ./public -type l -exec rm -f {} \; # Remove symlinks
find ./public -type f -exec du -ch {} + | grep total$ # Check total size
- name: Check for hard links
run: |
if find ./public -type f -links +1 | grep -q .; then
echo "Error: Hard links found in the public directory."
exit 1
fi
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
Expand Down

0 comments on commit 38ef5f1

Please sign in to comment.