Skip to content

Commit 3578d44

Browse files
committed
ci: update
1 parent c0b940c commit 3578d44

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

.github/workflows/action.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,31 +3,31 @@ name: Deploy to GH-Pages
33

44
on:
55
push:
6-
branches: [ master ]
6+
branches: [ master, main ]
7+
8+
permissions:
9+
contents: write
710

811
jobs:
912
build:
10-
1113
runs-on: ubuntu-latest
1214

1315
strategy:
1416
matrix:
15-
node-version: [12.x]
17+
node-version: [24.x]
1618

1719
steps:
18-
- uses: actions/checkout@v2
20+
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
1921
- name: Use Node.js ${{ matrix.node-version }}
20-
uses: actions/setup-node@v1
22+
uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6.1.0
2123
with:
2224
node-version: ${{ matrix.node-version }}
2325
- name: Install dependencies
2426
run: yarn
2527
- name: Run build
2628
run: yarn build
2729
- name: Deploy
28-
uses: JamesIves/github-pages-deploy-action@3.7.1
30+
uses: JamesIves/github-pages-deploy-action@9d877eea73427180ae43cf98e8914934fe157a1a # v4.7.6
2931
with:
30-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
31-
BRANCH: gh-pages
32-
FOLDER: docs/.vuepress/dist
33-
CLEAN: true
32+
folder: docs/.vuepress/dist
33+
clean: true

0 commit comments

Comments
 (0)