Skip to content

Commit

Permalink
ci: 修改template发版配置
Browse files Browse the repository at this point in the history
  • Loading branch information
jiayun zhang authored and yuntian001 committed Aug 22, 2022
1 parent 33202c9 commit 7b0ac81
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: deploy
name: deploy-template

on:
# 每当 push 到 main 分支时触发部署
push:
branches: [main]
branches: [template]
# 手动触发部署
workflow_dispatch:

Expand Down Expand Up @@ -45,8 +45,8 @@ jobs:
- name: Deploy to GitHub Pages
uses: crazy-max/ghaction-github-pages@v2
with:
# 部署到 gh-pages 分支
target_branch: gh-pages
# 部署到 gh-template-pages 分支
target_branch: gh-template-pages
# 部署目录为默认输出目录
build_dir: ./dist
env:
Expand Down
3 changes: 2 additions & 1 deletion .release-it.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
"commitMessage": "chore: release v${version}"
},
"github": {
"release": true
"release": true,
"releaseName":"Template Release ${version}"
},
"npm": {
"publish": false,
Expand Down

0 comments on commit 7b0ac81

Please sign in to comment.