44 deployToRepo : gh-pages
55
66on :
7- # Triggers the workflow on push and pull request events but only for the main branch
7+ # Triggers the workflow on push and pull request events but only for the master branch
88 push :
99 branches : [master]
10-
1110 # Allows you to run this workflow manually from the Actions tab.
1211 workflow_dispatch :
1312
@@ -17,18 +16,22 @@ jobs:
1716
1817 strategy :
1918 matrix :
20- node-version : [23.x]
21- # See supported Node.js release schedule at https://nodejs.org/en/about/releases/
19+ node-version : [23.x]
2220
2321 steps :
24- # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
22+ # Checks-out your repository under $GITHUB_WORKSPACE, fetching full history
2523 - name : Checkout
26- uses : actions/checkout@v3
24+ uses : actions/checkout@v4
25+ with :
26+ fetch-depth : 0
2727
2828 # Setup pnpm
29- - uses : pnpm/action-setup@v4
29+ - name : Setup pnpm
30+ uses : pnpm/action-setup@v4
31+
32+ # Setup Node.js environments
3033 - name : Use Node.js ${{ matrix.node-version }}
31- uses : actions/setup-node@v3
34+ uses : actions/setup-node@v4
3235 with :
3336 node-version : ${{ matrix.node-version }}
3437
@@ -38,21 +41,20 @@ jobs:
3841
3942 # Generate the search index tree
4043 - name : Index pages
41- run : |
42- pnpm run gensearch
44+ run : pnpm run gensearch
4345
44- # Regenerate the search index tree, build the project, and add .nojekyll file to supress default behaviour
46+ # Regenerate the search index tree, build the project, and suppress Jekyll
4547 - name : Build
4648 run : |
4749 pnpm run build
4850 touch ./dist/.nojekyll
4951
5052 # Push to your pages repo
5153 - name : Push to pages repo
52- uses : JamesIves/github-pages-deploy-action@v4.4.1
54+ uses : JamesIves/github-pages-deploy-action@v4
5355 with :
5456 folder : ' dist'
5557 branch : gh-pages
5658 git-config-name : GitHub Actions
57- git-config-email : actions@github.com"
58- commit-message : Deploy Site
59+ git-config-email : actions@github.com
60+ commit-message : Deploy Site
0 commit comments