Commit 7758c68
Bump version to 2.0.0-beta.4 and scope external-release pipeline to main only (#1793)
* Bump version from 2.0.0-beta.3 to 2.0.0-beta.4
Triggers the external-release ADO pipeline on merge to main, which
will publish Microsoft.Garnet 2.0.0-beta.4 and garnet-server 2.0.0-beta.4
to NuGet.org and create GitHub Release v2.0.0-beta.4.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Scope external-release pipeline to main only (drop dev)
Removes the dev branch path from the v2 release pipeline:
- trigger.branches.include: drop 'dev', keep only 'main'
- GitHubRelease/NuGet push conditions: simplified from or(main,dev)
to a single eq on Build.SourceBranch == refs/heads/main
- Drop the releaseTitle powershell shim and 'isPreRelease' flag
(only mattered when dev was producing PREVIEW releases)
dev pushes will no longer trigger the external release pipeline.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Auto-derive GitHubRelease isPreRelease from version string
Adds a powershell step right after extract_version.ps1 that sets a
pipeline variable 'isPreRelease' = true when Build.BuildNumber
contains a '-' (i.e., a SemVer prerelease label like '-beta.4').
GitHubRelease@1 now consumes 'isPreRelease: $(isPreRelease)' so:
- 2.0.0-beta.x -> prerelease=true (does NOT become 'Latest')
- 2.0.0 (GA) -> prerelease=false (becomes 'Latest')
- 1.1.x patches -> prerelease=false
No future maintenance needed when v2 GA ships.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Auto-derive GitHubRelease title PREVIEW prefix from version string
Extends the powershell shim that already sets 'isPreRelease' to also
set 'releaseTitle' = 'Garnet PREVIEW v$(Build.BuildNumber)' when the
version is a SemVer prerelease (contains '-'), else 'Garnet v...'.
GitHubRelease@1 now consumes 'title: $(releaseTitle)'. Net effect:
- 2.0.0-beta.x -> 'Garnet PREVIEW v2.0.0-beta.x' + prerelease=true
- 2.0.0 (GA) -> 'Garnet v2.0.0' + prerelease=false
- 1.1.x patches -> 'Garnet v1.1.x' + prerelease=false
Restores naming consistency with prior PREVIEW beta releases
(v2.0.0-beta.{1,2,3}) without re-introducing branch-based logic.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
---------
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent a3e692d commit 7758c68
2 files changed
Lines changed: 16 additions & 19 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
12 | 11 | | |
13 | 12 | | |
14 | 13 | | |
| |||
67 | 66 | | |
68 | 67 | | |
69 | 68 | | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
70 | 81 | | |
71 | 82 | | |
72 | 83 | | |
| |||
208 | 219 | | |
209 | 220 | | |
210 | 221 | | |
211 | | - | |
212 | | - | |
213 | | - | |
214 | | - | |
215 | | - | |
216 | | - | |
217 | | - | |
218 | | - | |
219 | 222 | | |
220 | 223 | | |
221 | | - | |
222 | | - | |
223 | | - | |
224 | | - | |
| 224 | + | |
225 | 225 | | |
226 | 226 | | |
227 | 227 | | |
| |||
244 | 244 | | |
245 | 245 | | |
246 | 246 | | |
247 | | - | |
| 247 | + | |
248 | 248 | | |
249 | 249 | | |
250 | 250 | | |
251 | | - | |
252 | | - | |
253 | | - | |
254 | | - | |
| 251 | + | |
255 | 252 | | |
256 | 253 | | |
257 | 254 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
0 commit comments