@@ -29,28 +29,28 @@ jobs:
2929 runs-on : ubuntu-latest
3030 steps :
3131 - name : Checkout
32- uses : actions/checkout@v3
32+ uses : actions/checkout@v4
3333 with :
3434 fetch-depth : 0 # Not needed if lastUpdated is not enabled
3535 # - uses: pnpm/action-setup@v2 # Uncomment this if you're using pnpm
3636 - name : Setup Node
37- uses : actions/setup-node@v3
37+ uses : actions/setup-node@v4
3838 with :
39- node-version : 18
39+ node-version : 20
4040 cache : npm # or pnpm / yarn
4141 - name : Setup Pages
42- uses : actions/configure-pages@v3
42+ uses : actions/configure-pages@v4
4343 - name : Install dependencies
44- run : npm ci # or pnpm install / yarn install
44+ run : npm ci # or pnpm install / yarn install / bun install
4545 - name : Build with VitePress
4646 run : |
47- npm run docs:build # or pnpm docs:build / yarn docs:build
47+ npm run docs:build
4848 touch docs/.vitepress/dist/.nojekyll
4949 touch docs/.nojekyll
5050 - name : Setup IndexNow
5151 run : echo ${{ secrets.INDEXNOW_KEY }} > docs/.vitepress/dist/${{ secrets.INDEXNOW_KEY }}.txt
5252 - name : Upload artifact
53- uses : actions/upload-pages-artifact@v2
53+ uses : actions/upload-pages-artifact@v3
5454 with :
5555 path : docs/.vitepress/dist
5656
@@ -65,15 +65,15 @@ jobs:
6565 steps :
6666 - name : Deploy to GitHub Pages
6767 id : deployment
68- uses : actions/deploy-pages@v2
68+ uses : actions/deploy-pages@v4
6969
7070 indexnow :
7171 needs : deploy
7272 runs-on : ubuntu-latest
7373 name : IndexNow Action
7474 steps :
7575 - name : IndexNow Action
76- uses : bojieyang/indexnow-action@v1
76+ uses : bojieyang/indexnow-action@v2
7777 with :
7878 sitemap-location : ' https://g5guide.github.io/sitemap.xml'
7979 key : ${{ secrets.INDEXNOW_KEY }}
0 commit comments