Skip to content

Commit ac606f6

Browse files
Dale KunceDale Kunce
authored andcommitted
fix: Clean up deployment script
- Removed duplicate deployment sections - Added comments explaining GitHub Pages - This matches the existing master branch structure
1 parent af66b95 commit ac606f6

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

.github/workflows/deploy.yml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,6 @@ jobs:
5757
steps:
5858
- name: Checkout master branch
5959
uses: actions/checkout@v4
60-
with:
61-
ref: master
62-
token: ${{ secrets.GITHUB_TOKEN }}
63-
fetch-depth: 0
64-
6560
- name: Checkout master branch
6661
uses: actions/checkout@v4
6762
with:
@@ -81,11 +76,13 @@ jobs:
8176
git config --local user.email "[email protected]"
8277
git config --local user.name "GitHub Action"
8378
84-
# Remove all files except .git
85-
find . -maxdepth 1 ! -name '.git' ! -name '.' ! -name '..' -exec rm -rf {} +
79+
# Remove all files except .git and _site
80+
find . -maxdepth 1 ! -name '.git' ! -name '_site' ! -name '.' ! -name '..' -exec rm -rf {} +
8681
87-
# Copy built site files to root
82+
# Copy built site files to root (GitHub Pages expects files in root, not in _site)
8883
cp -r _site/* .
84+
85+
# Remove the _site directory (not needed for GitHub Pages)
8986
rm -rf _site
9087
9188
# Add and commit changes

0 commit comments

Comments
 (0)