We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 699d85f commit 1b1e9bfCopy full SHA for 1b1e9bf
.github/workflows/publish.yml
@@ -55,12 +55,12 @@ jobs:
55
git config user.name "GitHub Action"
56
git config user.email "action@github.com"
57
58
- # Step 7: Clean up existing files and replace with new ones
+ # Step 7: Clean and Replace site contents
59
- name: Clean and Replace site contents
60
run: |
61
- # Remove everything except the .git directory
62
- find . -mindepth 1 ! -name '.git' ! -name '.gitignore' -exec rm -rf {} +
63
-
+ # Remove all files except for the .git directory
+ find . -mindepth 1 ! -name '.git' ! -name '.gitignore' -exec rm -rf {} +
+
64
# Check if the 'site' directory has files and copy them
65
if [ -d "site" ] && [ "$(ls -A site)" ]; then
66
cp -r site/* ./ # Copy the contents from the 'site' directory to the root directory
0 commit comments