Skip to content

Commit 2f174af

Browse files
committed
Remove CNAME files before Jekyll build
Add steps to delete CNAME and _site/CNAME files before the Jekyll build process in the GitHub Pages workflow. This prevents any existing CNAME configurations from interfering with the deployment process. The removal of these files ensures a clean build environment and avoids potential conflicts with custom domain settings.
1 parent b5e66b3 commit 2f174af

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

.github/workflows/jekyll-gh-pages.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ jobs:
2828
steps:
2929
- name: Checkout
3030
uses: actions/checkout@v4
31+
- name: Remove CNAME file
32+
run: |
33+
rm -f CNAME
34+
rm -f _site/CNAME || true
3135
- name: Setup Pages
3236
uses: actions/configure-pages@v5
3337
- name: Build with Jekyll

0 commit comments

Comments
 (0)