summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoger Gonzalez <roger@rogs.me>2022-06-13 17:17:08 -0300
committerRoger Gonzalez <roger@rogs.me>2022-06-13 17:17:08 -0300
commit727f3ebd42dc9ee2fc9dfe8d4c486b89755cdc0c (patch)
treeae3c853c9cddbb74cf1b2f6d7d46427f7236d612
parentabb0e4bff6756736478671776ad56f4b0ebf8363 (diff)
Deleting sources before regenerating site
-rw-r--r--.github/workflows/upload.yml5
1 files changed, 3 insertions, 2 deletions
diff --git a/.github/workflows/upload.yml b/.github/workflows/upload.yml
index 1cb6d74..1b84850 100644
--- a/.github/workflows/upload.yml
+++ b/.github/workflows/upload.yml
@@ -18,7 +18,7 @@ jobs:
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- - name: Updating website.
+ - name: Update website.
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.ssh_host }}
@@ -30,8 +30,9 @@ jobs:
cd repo
git stash
git pull --force origin master
+ rm -rf /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
with:
zone: ${{ secrets.CLOUDFLARE_ZONE }}