We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ce9fc8d commit 042b3ceCopy full SHA for 042b3ce
2 files changed
.github/workflows/deploy.yml
@@ -35,6 +35,15 @@ jobs:
35
- name: Build
36
run: npm run build
37
38
+ - name: Package build output
39
+ run: zip -r dist.zip dist
40
+
41
+ - name: Upload build artifact
42
+ uses: actions/upload-artifact@v4
43
+ with:
44
+ name: dist-package
45
+ path: dist.zip
46
47
- name: Deploy to GitHub Pages
48
uses: JamesIves/github-pages-deploy-action@v4
49
with:
README.md
@@ -77,6 +77,7 @@
77
2. 在仓库设置中启用 GitHub Pages
78
3. 选择 GitHub Actions 作为部署源
79
4. 推送代码时将自动触发构建和部署
80
+5. 部署完成后,可在 `Deploy to GitHub Pages` 工作流中下载自动生成的 `dist.zip` 以进行本地部署
81
82
## 📝 使用指南
83
0 commit comments