Skip to content

Commit fa68de0

Browse files
committed
feat(release): 🚀 Update release creation process
- Change release name to use `changelog_title` instead of `vsix_name` - Add publishing step to Visual Studio Marketplace with necessary parameters - Update `psake.ps1` to trim header for CI task title
1 parent a6488ab commit fa68de0

3 files changed

Lines changed: 10 additions & 23 deletions

File tree

.github/workflows/CreateRelease.yaml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,15 @@ jobs:
2424
- name: Create a Release
2525
uses: softprops/action-gh-release@v2
2626
with:
27-
name: ${{ steps.release_details.outputs.vsix_name }}
27+
name: ${{ steps.release_details.outputs.changelog_title }}
2828
body: ${{ steps.release_details.outputs.changelog_body }}
2929
files: ${{ steps.release_details.outputs.vsix_path }}
3030
make_latest: true
31-
tag_name: ${{ steps.release_details.outputs.vsix_version }}
31+
tag_name: v${{ steps.release_details.outputs.vsix_version }}
32+
- name: Publish to Visual Studio Marketplace
33+
uses: HaaLeo/publish-vscode-extension@v2
34+
with:
35+
pat: ${{ secrets.VS_MARKETPLACE_TOKEN }}
36+
registryUrl: https://marketplace.visualstudio.com
37+
yarn: true
38+
extensionFile: ${{ steps.release_details.outputs.vsix_path }}

.github/workflows/Publish.yaml

Lines changed: 0 additions & 20 deletions
This file was deleted.

psake.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ Task CI -Depends Package -Description "Run CI task for GitHub Actions" {
136136
$firstHeaderLine = $headers[0].Line
137137

138138
# The header is made up of a few component. We have to loop and convert each to string and join them
139-
$title = ($headers[0].Inline | ForEach-Object { $_.ToString() }) -join ''
139+
$title = $content[$firstHeaderLine].Trim("#")
140140
if ($headers.Count -eq 1) {
141141
# If there is only one header, then the content is from the first header to the end of the file
142142
$body = $content[$($firstHeaderLine + 1)..($content.Count - 1)] -join "`n"

0 commit comments

Comments
 (0)