Skip to content

Commit

Permalink
修改部署策略为tag部署
Browse files Browse the repository at this point in the history
  • Loading branch information
sumingcheng committed Dec 10, 2024
1 parent ab415e4 commit 142caba
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,18 @@ name: Deploy to GitHub Pages
# 自动构建网站
# 将构建后的文件推送到 gh-pages 分支
# GitHub Pages 会自动从 gh-pages 分支部署网站

# 部署操作
# 1. 完成一系列更改后
# 2. git tag v1.0.0
# 3. git push origin v1.0.0 # 这会触发部署
on:
push:
branches:
- main
tags:
- 'v*'
workflow_dispatch:

jobs:
deploy:
Expand Down

0 comments on commit 142caba

Please sign in to comment.