Deleting sources before regenerating site

This commit is contained in:
Roger Gonzalez 2022-06-13 17:17:08 -03:00
parent abb0e4bff6
commit 727f3ebd42

View File

@ -18,7 +18,7 @@ jobs:
# Steps represent a sequence of tasks that will be executed as part of the job # Steps represent a sequence of tasks that will be executed as part of the job
steps: steps:
- name: Updating website. - name: Update website.
uses: appleboy/ssh-action@master uses: appleboy/ssh-action@master
with: with:
host: ${{ secrets.ssh_host }} host: ${{ secrets.ssh_host }}
@ -30,8 +30,9 @@ jobs:
cd repo cd repo
git stash git stash
git pull --force origin master git pull --force origin master
rm -rf /var/www/montevideo.restaurant/
hugo -s . -d /var/www/montevideo.restaurant/ hugo -s . -d /var/www/montevideo.restaurant/
- name: Clear Cloudflare cache - name: Clear Cloudflare cache.
uses: Cyb3r-Jak3/action-cloudflare-cache@main uses: Cyb3r-Jak3/action-cloudflare-cache@main
with: with:
zone: ${{ secrets.CLOUDFLARE_ZONE }} zone: ${{ secrets.CLOUDFLARE_ZONE }}