Skip to content

Commit e2d70a3

Browse files
authored
Merge pull request #4509 from Vogel612/appveyor-shallow-clone
Fix Release Upload
2 parents 3fb3568 + 9a85931 commit e2d70a3

File tree

1 file changed

+25
-20
lines changed

1 file changed

+25
-20
lines changed

appveyor.yml

Lines changed: 25 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ init:
99
git config --global core.autocrlf true
1010

1111
# history limited to 15 commits, since we ran into trouble with a limit of 3
12-
# the limit can be rather
12+
# the limit can be rather generous
1313
clone_depth: 15
1414
# explicitly do not shallow-clone.
1515
# Line-Endings are wrong on github, because of CRLF fixing
@@ -48,9 +48,6 @@ dotnet_csproj:
4848
file: 'RubberduckBaseProject.csproj' # ;*\Rubberduck.Core.csproj'
4949
version: '{version}'
5050
assembly_version: '{version}'
51-
# patching fails if we try to patch properties we didn't define
52-
#file_version: '{version}'
53-
#informational_version: '{version}'
5451

5552

5653
before_build:
@@ -81,53 +78,61 @@ for:
8178
- next
8279
environment:
8380
installer_name: Rubberduck.Setup.%APPVEYOR_BUILD_VERSION%-pre.exe
81+
release_name: Rubberduck v%APPVEYOR_BUILD_VERSION%-pre
8482
-
8583
branches:
8684
only:
8785
- master
8886
environment:
8987
installer_name: Rubberduck.Setup.%APPVEYOR_BUILD_VERSION%.exe
88+
release_name: Rubberduck v%APPVEYOR_BUILD_VERSION%
9089
-
9190
branches:
9291
except:
9392
- master
9493
- next
9594
environment:
96-
# fall back to calling the installer after the branch we're on
97-
installer_name: Rubberduck.Setup.%APPVEYOR_BUILD_VERSION%-%APPVEYOR_REPO_BRANCH%.exe
95+
# fall back to naming the installer something that shows we're in an unexpected state
96+
installer_name: Rubberduck.Setup.%APPVEYOR_BUILD_VERSION%-unexpected.exe
97+
release_name: Rubberduck v%APPVEYOR_BUILD_VERSION%-%APPVEYOR_REPO_BRANCH%
9898

99-
# Create Installers for
99+
# Create Installers to store at appveyor and upload to github
100100
after_test:
101101
- cmd: iscc /O "Rubberduck.Deployment\InnoSetup\Rubberduck.Installer.Build.iss"
102102
- cmd: move %INSTALLER_DIR%\Rubberduck.Setup.exe %INSTALLER_DIR%\%INSTALLER_NAME%
103-
103+
104104
# grab the installers we produce and upload them to github :)
105105
artifacts:
106106
- path: Rubberduck.Deployment\InnoSetup\Installers\Rubberduck.Setup.*.exe
107107
name: Rubberduck
108108
deploy:
109109
- provider: GitHub
110110
tag: Rubberduck v$(appveyor_build_version)
111-
release: Rubberduck v$(appveyor_build_version)
112-
description: AppVeyor build on [master] - https://ci.appveyor.com/project/rubberduck-vba/rubberduck/build/$(appveyor_build_version)
113-
auth_token:
114-
secure: NVAZgFRSk566SP5QDge5gYRWCaLi4NJJPTNk3QengH15wL9iVldfrFOllbzKXExq
115-
artifact: Rubberduck.Deployment\InnoSetup\Installers\Rubberduck.Setup.$(appveyor_build_version).exe
111+
release: $(release_name)
116112
draft: true
117113
prerelease: false
118-
on:
114+
description: "Built with :heart: by AppVeyor CI on [$(appveyor_repo_branch)] - https://ci.appveyor.com/project/rubberduck-vba/rubberduck/build/$(appveyor_build_version)"
115+
auth_token:
116+
secure: NVAZgFRSk566SP5QDge5gYRWCaLi4NJJPTNk3QengH15wL9iVldfrFOllbzKXExq
117+
artifact: Rubberduck
118+
on:
119119
branch: master
120120
- provider: GitHub
121121
tag: Rubberduck v$(appveyor_build_version)
122-
release: Rubberduck v$(appveyor_build_version)-pre
123-
description: AppVeyor build on [next] - https://ci.appveyor.com/project/rubberduck-vba/rubberduck/build/$(appveyor_build_version)
122+
release: $(release_name)
123+
draft: true
124+
prerelease: false
125+
description: >-
126+
AppVeyor build on [$(appveyor_repo_branch)] - https://ci.appveyor.com/project/rubberduck-vba/rubberduck/build/$(appveyor_build_version)
127+
128+
Merges \#$(appveyor_pull_request_number) - $(appveyor_pull_request_title)
124129
auth_token:
125130
secure: NVAZgFRSk566SP5QDge5gYRWCaLi4NJJPTNk3QengH15wL9iVldfrFOllbzKXExq
126-
artifact: Rubberduck.Deployment\InnoSetup\Installers\Rubberduck.Setup.$(appveyor_build_version)-pre.exe
127-
draft: false
128-
prerelease: true
129-
on:
131+
artifact: Rubberduck
132+
on:
130133
branch: next
134+
135+
# This is Duga posting stuff to the war room
131136
notifications:
132137
- provider: Webhook
133138
url: http://stats.zomis.net/GithubHookSEChatService/hooks/github/payload?roomId=14929

0 commit comments

Comments
 (0)