Skip to content

Commit bc33067

Browse files
Dale KunceDale Kunce
authored andcommitted
Resolve merge conflict: remove events.json as it should be auto-generated
- Keep events.json deleted since it's now in .gitignore - File will be generated fresh during build process - Prevents future merge conflicts on auto-generated content
2 parents 24b407b + 9d40439 commit bc33067

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ jobs:
5555
needs: build
5656
if: github.ref == 'refs/heads/publish' && github.event_name == 'push'
5757
steps:
58+
- name: Checkout master branch
59+
uses: actions/checkout@v4
5860
- name: Checkout master branch
5961
uses: actions/checkout@v4
6062
with:
@@ -74,11 +76,13 @@ jobs:
7476
git config --local user.email "action@github.com"
7577
git config --local user.name "GitHub Action"
7678
77-
# Remove all files except .git
78-
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 {} +
7981
80-
# Copy built site files to root
82+
# Copy built site files to root (GitHub Pages expects files in root, not in _site)
8183
cp -r _site/* .
84+
85+
# Remove the _site directory (not needed for GitHub Pages)
8286
rm -rf _site
8387
8488
# Add and commit changes
@@ -88,4 +92,4 @@ jobs:
8892
else
8993
git commit -m "CI deploy to gh-pages from publish@${{ github.sha }}"
9094
git push origin master
91-
fi
95+
fi

0 commit comments

Comments
 (0)