Skip to content

Commit 9ffe7f3

Browse files
committed
Merge remote-tracking branch 'upstream/main'
2 parents a416a5c + 25e39a9 commit 9ffe7f3

File tree

3 files changed

+595
-366
lines changed

3 files changed

+595
-366
lines changed

.github/workflows/release.yml

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,19 @@ jobs:
4444
uses: myrotvorets/[email protected]
4545
id: ver
4646

47-
- uses: lannonbr/vsce-action@master
47+
- name: Publish to Open VSX Registry
48+
uses: HaaLeo/publish-vscode-extension@v1
49+
id: publishOpenVSX
4850
with:
49-
args: "package"
50-
51+
pat: ${{ secrets.OPEN_VSX_TOKEN }}
52+
53+
- name: Publish to Visual Studio Marketplace
54+
uses: HaaLeo/publish-vscode-extension@v1
55+
with:
56+
pat: ${{ secrets.VS_MARKETPLACE_TOKEN }}
57+
registryUrl: https://marketplace.visualstudio.com
58+
extensionFile: ${{ steps.publishOpenVSX.outputs.vsixPath }}
59+
5160
- name: Create Release
5261
id: create_release
5362
uses: actions/create-release@v1
@@ -66,6 +75,6 @@ jobs:
6675
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6776
with:
6877
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
69-
asset_path: ./vscode-nushell-lang-${{ steps.ver.outputs.packageVersion }}.vsix # Need to get this version number dynamically
78+
asset_path: ${{ steps.publishOpenVSX.outputs.vsixPath }} # Need to get this version number dynamically
7079
asset_name: vscode-nushell-lang-${{ steps.ver.outputs.packageVersion }}.vsix
7180
asset_content_type: application/vsix

0 commit comments

Comments
 (0)