build(actions): update gh-pages to ignore deleting CNAME

This commit is contained in:
Haoyu Xu
2023-06-25 03:31:43 -04:00
parent 8a44a30e3e
commit 68c46641e7
2 changed files with 6 additions and 2 deletions

3
.gh-pages-clear-rules Normal file
View File

@@ -0,0 +1,3 @@
**/*
!.git
!CNAME

View File

@@ -9,7 +9,7 @@ jobs:
runs-on: ubuntu-latest
if: "contains(github.event.head_commit.message, '[release]')"
# if: "contains(github.event.head_commit.message, '[release]')"
permissions:
contents: write
@@ -32,4 +32,5 @@ jobs:
REPO: self
BRANCH: gh-pages
FOLDER: release
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CLEAR_GLOBS_FILE: ".gh-pages-clear-rules"