You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- 'none'# Only builds the VSIX and publish it to Build Artifacts.
10
+
- 'create'# Builds and publishes the VSIX and also creates a github release
11
+
- 'edit'# Builds and publishes the VSIX and edits an existing github release
12
+
- 'delete'# Does not build the VSIX and deletes an existing github release
13
+
# Version of the WindowsAppSDK used to build the Samples VSIX
14
+
- name: "WinAppSDKVersion"
15
+
displayName: "Windows App SDK version (Required except for 'delete' action)"
16
+
type: string
17
+
default: 'Placeholder'
18
+
# This is used as a unique identifier for the GitHub Release.
19
+
- name: "ReleaseTag"
20
+
displayName: "Release Unique Identifier (Required for 'create','edit','delete' actions)"
21
+
type: string
22
+
default: 'Placeholder'
23
+
# GitHubRelease@1 Action
24
+
- name: "ReleaseTitle"
25
+
displayName: "Release Title (Required for 'create','edit' actions)"
26
+
type: string
27
+
default: 'Placeholder'
28
+
- name: "ReleaseNotes"
29
+
displayName: "Release Notes (Required for 'create','edit' actions)"
30
+
type: string
31
+
default: 'Placeholder'
32
+
- name: "IsDraft"
33
+
displayName: "IsDraft: \n Indicate whether the release should be saved as a draft (unpublished). If unchecked, the release will be published. (Effective only in 'create','edit' actions)"
34
+
type: boolean
35
+
default: False
36
+
- name: "IsPreRelease"
37
+
displayName: "IsPrelease: \n Indicate whether the release should be marked as a pre-release. (Effective only in 'create','edit' actions)"
38
+
type: boolean
39
+
default: False
40
+
41
+
stages:
42
+
- stage: BuildAndReleaseVSIX
43
+
jobs:
44
+
- job: BuildAndReleaseVSIX
45
+
pool:
46
+
vmImage: 'windows-2022'
47
+
steps:
48
+
- task: NuGetAuthenticate@0
49
+
inputs:
50
+
nuGetServiceConnections: 'Internal-ReleaseSigned'
51
+
52
+
- ${{ if ne(parameters.Action, 'delete') }}:
53
+
# Update path for MSIX reference in build\NuSpecs\build\Microsoft.WindowsAppSDK.AppXReference.props
54
+
# Before, this was a hardcoded value
55
+
- task: PowerShell@2
56
+
displayName: 'Update version in Directory.Build.props'
0 commit comments