Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
luis15pt committed Jan 3, 2025
1 parent f12ff88 commit 01edf6d
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/hugo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,13 @@ jobs:
uses: peaceiris/actions-hugo@v2
with:
hugo-version: 'latest'
extended: true

- name: Build
run: hugo --minify

- name: Deploy to local
run: |
sudo cp -r public/* /home/hugo/blog/public/
sudo chown -R www-data:www-data /home/hugo/blog/public/
hugo --minify
rm -rf /home/hugo/blog/public/*
cp -r public/* /home/hugo/blog/public/
chown -R www-data:www-data /home/hugo/blog/public/

0 comments on commit 01edf6d

Please sign in to comment.