-
-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add release action and pray that it will just work
- Loading branch information
1 parent
bc4af63
commit 30fe897
Showing
1 changed file
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: Release vsix to OpenVSX and VSCode marketplace | ||
on: [release] | ||
|
||
jobs: | ||
release: | ||
name: "Release" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@master | ||
|
||
- name: Set Node.js 10.x | ||
uses: actions/setup-node@master | ||
with: | ||
version: 14.x | ||
|
||
- name: npm install | ||
run: npm install | ||
|
||
- name: typescript | ||
run: npx tsc | ||
|
||
- name: Publish to Open VSX Registry | ||
uses: HaaLeo/publish-vscode-extension@v0 | ||
id: publishToOpenVSX | ||
with: | ||
pat: ${{ secrets.OPEN_VSX_TOKEN }} | ||
- name: Publish to Visual Studio Marketplace | ||
uses: HaaLeo/publish-vscode-extension@v0 | ||
with: | ||
pat: ${{ secrets.VS_MARKETPLACE_TOKEN }} | ||
registryUrl: https://marketplace.visualstudio.com | ||
extensionFile: ${{ steps.publishToOpenVSX.outputs.vsixPath }} | ||
packagePath: '' | ||
- name: Upload | ||
uses: djn24/add-asset-to-release@v1 | ||
with: | ||
token: ${{secrets.GITHUB_TOKEN}} | ||
path: ${{ steps.publishToOpenVSX.outputs.vsixPath }} |