File tree Expand file tree Collapse file tree 2 files changed +6
-17
lines changed Expand file tree Collapse file tree 2 files changed +6
-17
lines changed Original file line number Diff line number Diff line change @@ -22,28 +22,18 @@ clone_depth: 1
22
22
23
23
init :
24
24
- ps : |
25
- if ($env :APPVEYOR_REPO_TAG_NAME) {
26
- $headers = @{
25
+ If ($Env :APPVEYOR_REPO_TAG_NAME -match "-") {
26
+ $headers = @{
27
27
"Authorization" = "Bearer $env:GITHUB_TOKEN"
28
28
"Content-type" = "application/json"
29
29
}
30
30
$releases = Invoke-RestMethod -Uri "https://api.github.com/repos/$env:APPVEYOR_REPO_NAME/releases" -Headers $headers -Method GET
31
31
$env:releaseDescription = ($releases | Where-Object {$_.name -eq "$env:APPVEYOR_REPO_TAG_NAME"}).body
32
- if ($env:APPVEYOR_REPO_TAG_NAME -like "-") {
33
- $env:isPrerelease = "true"
34
- } else {
35
- $env:isPrerelease = "false"
36
- }
37
-
32
+ Set-AppveyorBuildVariable -Name "IsPreRelease" -Value True
33
+ }
34
+ Else{
35
+ Set-AppveyorBuildVariable -Name "IsPreRelease" -Value False
38
36
}
39
-
40
- - ps : |
41
- If ($Env:APPVEYOR_REPO_TAG_NAME -match "-"){
42
- Set-AppveyorBuildVariable -Name "IsPreRelease" -Value True
43
- }
44
- Else{
45
- Set-AppveyorBuildVariable -Name "IsPreRelease" -Value False
46
- }
47
37
48
38
environment :
49
39
global :
@@ -131,7 +121,6 @@ deploy:
131
121
prerelease : $(IsPreRelease)
132
122
artifact : Zip, NuGet
133
123
auth_token : $(GITHUB_TOKEN)
134
- artifact : /.*\.nupkg/
135
124
draft : true
136
125
force_update : true
137
126
on :
File renamed without changes.
You can’t perform that action at this time.
0 commit comments