Skip to content

Commit

Permalink
add release action and pray that it will just work
Browse files Browse the repository at this point in the history
  • Loading branch information
WebFreak001 committed Nov 20, 2021
1 parent bc4af63 commit 30fe897
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/release.yml
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 }}

0 comments on commit 30fe897

Please sign in to comment.