This commit is contained in:
xugaoyi 2023-11-01 16:52:51 +08:00
parent e438e31d4e
commit 77bdf60a33
1 changed files with 2 additions and 4 deletions

View File

@ -17,13 +17,13 @@ jobs:
strategy:
matrix:
node-version: [14.x]
node-version: [18.x]
steps:
- name: Checkout # 步骤1
uses: actions/checkout@v1 # 使用的动作。格式userName/repoName。作用检出仓库获取源码。 官方actions库https://github.com/actions
- name: Use Node.js ${{ matrix.node-version }} # 步骤2
uses: actions/setup-node@v1 # 作用安装nodejs
uses: actions/setup-node@v3 # 作用安装nodejs
with:
node-version: ${{ matrix.node-version }} # 版本
- name: Build-and-deploy # 步骤3
@ -46,5 +46,3 @@ jobs:
remote_addr=https://${user_name}:${{secrets.GITHUB_TOKEN}}@${remote_addr}
git remote add origin ${remote_addr}
git push origin HEAD:$deploy_branch --force # 推送到github $deploy_branch分支
# 只提交到github pages也可以使用github-pages-deploy-action详见: https://github.com/JamesIves/github-pages-deploy-action