Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
WindyDante authored Oct 11, 2024
1 parent 33d6c6a commit 5c23426
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v3 # 更新为 v3
uses: actions/checkout@v3

- name: Set up Node.js
uses: actions/setup-node@v3 # 更新为 v3
uses: actions/setup-node@v3
with:
node-version: '16'

Expand All @@ -27,8 +27,8 @@ jobs:
- name: Build project
run: npm run build

- name: Upload production-ready files
uses: actions/upload-artifact@v3 # 更新为 v3
- name: Deploy to GitHub Pages
uses: JamesIves/github-pages-deploy-action@v4 # 使用最新版本的 GitHub Pages 部署 Action
with:
name: dist-files
path: dist/ # 构建好的静态文件路径
branch: gh-pages # GitHub Pages 部署到 gh-pages 分支
folder: dist # 构建输出的文件夹

0 comments on commit 5c23426

Please sign in to comment.