Skip to content

Commit

Permalink
Merge pull request #15 from microsoft/main
Browse files Browse the repository at this point in the history
Release 1-13-21
  • Loading branch information
bill-long authored Jan 13, 2021
2 parents fc5c1f3 + ad16d0e commit f4984e1
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 6 deletions.
17 changes: 16 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,19 @@
{
"powershell.codeFormatting.autoCorrectAliases": true,
"powershell.codeFormatting.preset": "OTBS",
"powershell.codeFormatting.trimWhitespaceAroundPipe": true,
"powershell.codeFormatting.useCorrectCasing": true,
"powershell.codeFormatting.newLineAfterCloseBrace": false,
"powershell.codeFormatting.pipelineIndentationStyle": "IncreaseIndentationForFirstPipeline"
"powershell.codeFormatting.pipelineIndentationStyle": "IncreaseIndentationForFirstPipeline",
"powershell.codeFormatting.alignPropertyValuePairs": true,
"powershell.codeFormatting.ignoreOneLineBlock": true,
"powershell.codeFormatting.newLineAfterOpenBrace": true,
"powershell.codeFormatting.openBraceOnSameLine": true,
"powershell.codeFormatting.whitespaceAfterSeparator": true,
"powershell.codeFormatting.whitespaceAroundOperator": true,
"powershell.codeFormatting.whitespaceBeforeOpenBrace": true,
"powershell.codeFormatting.whitespaceBeforeOpenParen": true,
"powershell.codeFormatting.whitespaceBetweenParameters": false,
"powershell.codeFormatting.whitespaceInsideBrace": true,
"powershell.codeFormatting.addWhitespaceAroundPipe": true
}
24 changes: 19 additions & 5 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
# Starter pipeline
# Start with a minimal pipeline that you can customize to build and deploy your code.
# Add steps that build, run tests, deploy, and more:
# https://aka.ms/yaml

trigger:
branches:
include:
- main
- release

pool:
vmImage: 'windows-latest'
Expand All @@ -25,6 +21,10 @@ steps:
.\Build.ps1
displayName: "Build Script"

- pwsh: |
$tag = "v$((Get-Date).ToString(`"yy.MM.dd.HHmm`"))"
Write-Host "##vso[task.setvariable variable=ReleaseTagValue]$tag"
- task: EsrpCodeSigning@1
inputs:
ConnectedServiceName: 'CSS Exchange Code Sign'
Expand Down Expand Up @@ -65,3 +65,17 @@ steps:
SessionTimeout: '60'
MaxConcurrency: '50'
MaxRetryAttempts: '5'

- task: GitHubRelease@0
displayName: 'Create GitHub Release'
condition: and(succeeded(), ne (variables['Build.Reason'], 'PullRequest'), eq(variables['Build.SourceBranch'], 'refs/heads/release'))
inputs:
gitHubConnection: 'GitHub Release'
repositoryName: microsoft/CSS-Exchange
action: create
tagSource: manual
tagPattern: 'v[0-9].[0-9].[0-9].[0-9]'
tag: $(ReleaseTagValue)
title: $(ReleaseTagValue)
assets: dist\*.ps1
addChangeLog: true

0 comments on commit f4984e1

Please sign in to comment.