Compare commits
2 Commits
| Author | SHA1 | Date |
|---|---|---|
|
|
ee099fd68c | |
|
|
9067342a49 |
|
|
@ -6,7 +6,7 @@ name: deploy-client
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
tags:
|
tags:
|
||||||
- 'deploy-cv*.*.*'
|
- 'deploy-cv*.*.*.*'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
deploy:
|
deploy:
|
||||||
|
|
@ -20,10 +20,10 @@ jobs:
|
||||||
Set-StrictMode -Version Latest
|
Set-StrictMode -Version Latest
|
||||||
$ErrorActionPreference = 'Stop'
|
$ErrorActionPreference = 'Stop'
|
||||||
|
|
||||||
# 从触发标签解析版本号: deploy-cv1.2.3 -> 1.2.3
|
# 从触发标签解析版本号: deploy-cv1.2.3.4 -> 1.2.3.4
|
||||||
$deployTag = '${{ github.ref_name }}'
|
$deployTag = '${{ github.ref_name }}'
|
||||||
if (-not ($deployTag -match '^deploy-cv(\d+\.\d+\.\d+)$')) {
|
if (-not ($deployTag -match '^deploy-cv(\d+\.\d+\.\d+\.\d+)$')) {
|
||||||
throw "Trigger tag '$deployTag' must match deploy-cvx.x.x."
|
throw "Trigger tag '$deployTag' must match deploy-cvx.x.x.x."
|
||||||
}
|
}
|
||||||
$version = $Matches[1]
|
$version = $Matches[1]
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ name: deploy-server
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
tags:
|
tags:
|
||||||
- 'deploy-sv*.*.*'
|
- 'deploy-sv*.*.*.*'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
deploy:
|
deploy:
|
||||||
|
|
@ -20,10 +20,10 @@ jobs:
|
||||||
Set-StrictMode -Version Latest
|
Set-StrictMode -Version Latest
|
||||||
$ErrorActionPreference = 'Stop'
|
$ErrorActionPreference = 'Stop'
|
||||||
|
|
||||||
# 从触发标签解析版本号: deploy-sv1.2.3 -> 1.2.3
|
# 从触发标签解析版本号: deploy-sv1.2.3.4 -> 1.2.3.4
|
||||||
$deployTag = '${{ github.ref_name }}'
|
$deployTag = '${{ github.ref_name }}'
|
||||||
if (-not ($deployTag -match '^deploy-sv(\d+\.\d+\.\d+)$')) {
|
if (-not ($deployTag -match '^deploy-sv(\d+\.\d+\.\d+\.\d+)$')) {
|
||||||
throw "Trigger tag '$deployTag' must match deploy-svx.x.x."
|
throw "Trigger tag '$deployTag' must match deploy-svx.x.x.x."
|
||||||
}
|
}
|
||||||
$version = $Matches[1]
|
$version = $Matches[1]
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue