Skip to content

Commit 20d563f

Browse files
committed
refactor: update github action script
1 parent 81e2694 commit 20d563f

File tree

1 file changed

+13
-14
lines changed

1 file changed

+13
-14
lines changed

.github/workflows/wangdoc.yml

+13-14
Original file line numberDiff line numberDiff line change
@@ -10,27 +10,26 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- name: Checkout
13-
uses: actions/checkout@v2
13+
uses: actions/checkout@v4
1414
with:
1515
persist-credentials: false
1616
- name: Setup Node.js
17-
uses: actions/setup-node@main
17+
uses: actions/setup-node@v4
1818
with:
19-
node-version: '14'
19+
node-version: 'latest'
2020
- name: Install dependencies
2121
run: npm install
2222
- name: Build pages
2323
run: npm run build
2424
- name: Deploy to website
25-
uses: JamesIves/github-pages-deploy-action@3.7.1
25+
uses: JamesIves/github-pages-deploy-action@v4
2626
with:
27-
GIT_CONFIG_NAME: wangdoc-bot
28-
GIT_CONFIG_EMAIL: [email protected]
29-
REPOSITORY_NAME: wangdoc/website
30-
ACCESS_TOKEN: ${{ secrets.WANGDOC_BOT_TOKEN }}
31-
BASE_BRANCH: main
32-
BRANCH: master # The branch the action should deploy to.
33-
FOLDER: dist # The folder the action should deploy.
34-
TARGET_FOLDER: dist/clang
35-
CLEAN: true # Automatically remove deleted files from the deploy branch
36-
COMMIT_MESSAGE: update from Clang tutorial
27+
git-config-name: wangdoc-bot
28+
git-config-email: [email protected]
29+
repository-name: wangdoc/website
30+
token: ${{ secrets.WANGDOC_BOT_TOKEN }}
31+
branch: master # The branch the action should deploy to.
32+
folder: dist # The folder the action should deploy.
33+
target-folder: dist/clang
34+
clean: true # Automatically remove deleted files from the deploy branch
35+
commit-message: update from Clang tutorial

0 commit comments

Comments
 (0)