github: remove directory before next run

Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
This commit is contained in:
Harsh Shandilya 2020-04-29 20:08:46 +05:30
parent 2eded4b165
commit 9ebe2df091
1 changed files with 3 additions and 1 deletions

View File

@ -34,7 +34,9 @@ jobs:
- name: Build prod
if: "!contains(github.event.head_commit.message, '[skip prod]')"
run: hugo --minify
run: |
rm -rf public/
hugo --minify
- name: Deploy to prod
if: "!contains(github.event.head_commit.message, '[skip prod]')"