File tree 2 files changed +6
-5
lines changed 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 33
33
$env: BHCommitMessage -match ' !release'
34
34
)
35
35
{
36
- Compress-Archive - Path $env: BHModulePath - DestinationPath $env: BHProjectPath \$env: ModuleName - $env: ModuleVersion.zip
37
- if (-Not (Test-Path - Path $env: BHProjectPath \$env: ModuleName - $env: ModuleVersion.zip )) {
36
+ $ReleaseAsset = " $env: BHProjectPath \$env: ModuleName -$env: ModuleVersion .zip"
37
+ Compress-Archive - Path $env: BHModulePath - DestinationPath $ReleaseAsset
38
+ if (-Not (Test-Path - Path $ReleaseAsset )) {
38
39
Write-Error ' Failed to create archive for release'
39
40
}
40
- " Created release asset $env: BHProjectPath \ $ env: ModuleName - $ env: ModuleVersion .zip " |
41
+ " Created release asset $ReleaseAsset " |
41
42
Write-Host
42
43
43
44
$ReleaseNotes = ' PLEASE FILL MANUALLY'
92
93
93
94
" Uploading asset to GitHub release" |
94
95
Write-Host
95
- $RequestBody = Get-Content - Path $env: BHProjectPath \ $ env: BHProjectName - $ env: ModuleVersion .zip - Raw
96
+ $RequestBody = Get-Content - Path $ReleaseAsset - Raw
96
97
$Result = Invoke-WebRequest - Method Post - Uri " https://uploads.github.com/repos/$ENV: APPVEYOR_REPO_NAME /releases/$GitHubReleaseId /assets?name=$env: BHProjectName -$env: ModuleVersion .zip" - Headers @ {Authorization = " token $ENV: GitHubToken " } - ContentType ' application/zip' - Body $RequestBody
97
98
if ($Result.StatusCode -ne 201 ) {
98
99
Write-Error " Failed to upload release asset. Code $ ( $Result.StatusCode ) : $ ( $Result.Content ) "
Original file line number Diff line number Diff line change 1
- # 1.1.112
1
+ # 1.1.113
2
2
3
3
- Integrated updated scripts from PowerShell-CI
4
4
- Fixed test for property
You can’t perform that action at this time.
0 commit comments