Skip to content

Commit

Permalink
🔧 config: Delete all old files on build (#64)
Browse files Browse the repository at this point in the history
  • Loading branch information
HarshKapadia2 committed Apr 21, 2021
1 parent 9d91ef9 commit 30a6e80
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/build-website.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ jobs:
git switch gh-pages
fi
# Delete all old files
rm -rf *
# Get latest source and buildscript
git restore -s "${BRANCH_NAME}" src build.sh
fi
Expand Down
3 changes: 0 additions & 3 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ set -euo pipefail;
output="${1-./build}";
echo "Building to: '${output}'";

# Remove output dir if it already exists
rm -rf "${output}";

mkdir -p "${output}";

for path in \
Expand Down

0 comments on commit 30a6e80

Please sign in to comment.