Skip to content

Commit 0ecb807

Browse files
Update deploy.yml
1 parent 548d4a1 commit 0ecb807

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/deploy.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,11 @@ jobs:
1616
run: chmod +x ./tests/run_tests.sh # Ensure the script has execute permissions
1717
continue-on-error: false # Skip deployment if tests fail
1818

19-
# Remove Jekyll build as it's not needed
19+
# Prepare files for GitHub Pages and exclude the _site directory
2020
- name: Prepare files for GitHub Pages
21-
run: mkdir -p ./_site && cp -r * ./_site # Move all files to the _site directory
21+
run: |
22+
mkdir -p ./_site
23+
rsync -av --progress ./ ./_site --exclude _site # Use rsync to exclude the _site directory
2224
2325
- name: Upload GitHub Pages artifact
2426
uses: actions/upload-pages-artifact@v3

0 commit comments

Comments
 (0)