forked from abpframework/abp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_run_all.ps1
46 lines (37 loc) · 886 Bytes
/
_run_all.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
param(
[string]$branch,
[string]$newVersion,
[string]$isRcVersion
)
. ..\nupkg\common.ps1
Start-Transcript -Append _run_all_log.txt
if (!$branch)
{
$branch = Read-Host "Enter the branch name"
}
if (!$newVersion)
{
$currentVersion = Get-Current-Version
$newVersion = Read-Host "Current version is '$currentVersion'. Enter the new version (empty for no change) "
if($newVersion -eq "")
{
$newVersion = $currentVersion
}
}
if ($isRcVersion -eq "")
{
$isRcVersion = Read-Host "Is this a RC/Preview version? (y/n)"
}
$publishGithubReleaseParams = @{
branchName=$branch
isRcVersion=$isRcVersion
}
./1-fetch-and-build.ps1 $branch $newVersion
./2-nuget-pack.ps1
./3-nuget-push.ps1
./4-npm-publish-mvc.ps1
./5-npm-publish-angular.ps1
./6-git-commit.ps1
./7-publish-github-release.ps1 @publishGithubReleaseParams
./8-download-release-zip.ps1
Stop-Transcript