Skip to content

Commit

Permalink
add release vs prerelease publishing (#655)
Browse files Browse the repository at this point in the history
  • Loading branch information
danfiedler-msft authored Nov 6, 2024
1 parent e1d98d3 commit ad46ed1
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 2 deletions.
4 changes: 4 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [1.0.46] - 2024-11-05
### Pipeline
Pipeline only changes

## [1.0.45] - 2024-11-01
### Pipeline
Pipeline only changes
Expand Down
21 changes: 19 additions & 2 deletions Pipelines/vscode/devskim-vscode-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -135,12 +135,19 @@ extends:

- powershell: 'Get-ChildItem -Path ''$(Build.BinariesDirectory)'' -Recurse CodeSign* | foreach { Remove-Item -Path $_.FullName }'
displayName: 'Delete Code Sign Summaries'

- task: PowerShell@2
displayName: Move Plugin File
inputs:
targetType: 'inline'
script: 'mv $env:BUILD_BINARIESDIRECTORY/Unsigned_Plugin/*.vsix $env:BUILD_STAGINGDIRECTORY/'

- task: CmdLine@2
displayName: 'List files in StagingDirectory'
inputs:
script: dir /B
workingDirectory: '$(Build.StagingDirectory)'

# Install dependencies and VS Code Extension Manager (vsce >= v2.26.1 needed)
- script: |
cd $(Build.StagingDirectory)
Expand All @@ -155,9 +162,19 @@ extends:
azureSubscription: oss-vs-marketplace-publish-mi-connection
scriptType: "pscore"
scriptLocation: 'inlineScript'
workingDirectory: '$(Build.StagingDirectory)'
inlineScript: |
cd $(Build.StagingDirectory)
vsce publish --azure-credential
$packPath = Resolve-Path $env:BUILD_STAGINGDIRECTORY\*.vsix
if ("$(ReleaseVersion)".Contains("-"))
{
echo "Publishing as --pre-release = $(ReleaseVersion)"
vsce publish --packagePath $packPath --pre-release --azure-credential
}
else
{
echo "Publishing as official release = $(ReleaseVersion)"
vsce publish --packagePath $packPath --azure-credential
}
- task: GitHubRelease@1
displayName: Release to GitHub
Expand Down

0 comments on commit ad46ed1

Please sign in to comment.