-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (37 loc) · 1.18 KB
/
CreateRelease.yaml
File metadata and controls
38 lines (37 loc) · 1.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Create Release
on:
workflow_dispatch:
permissions:
contents: write
defaults:
run:
shell: pwsh
jobs:
package:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- run: yarn install
- name: Get Release Details
id: release_details
run: |
.\build.ps1 -Task CI -Bootstrap
# Outputs: vsix_path, vsix_name, changelog_title, changelog_body
- name: Create a Release
uses: softprops/action-gh-release@v2
with:
name: ${{ steps.release_details.outputs.changelog_title }}
body: ${{ steps.release_details.outputs.changelog_body }}
files: ${{ steps.release_details.outputs.vsix_path }}
make_latest: true
tag_name: v${{ steps.release_details.outputs.vsix_version }}
- name: Publish to Visual Studio Marketplace
uses: HaaLeo/publish-vscode-extension@v2
with:
pat: ${{ secrets.VS_MARKETPLACE_TOKEN }}
registryUrl: https://marketplace.visualstudio.com
yarn: true
extensionFile: ${{ steps.release_details.outputs.vsix_path }}