Skip to content

Commit

Permalink
Publish on release created
Browse files Browse the repository at this point in the history
  • Loading branch information
jneira committed Aug 3, 2021
1 parent 05dd578 commit 77ddd59
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
on:
push:
tags:
- '*'
release:
types: [created]

name: Deploy Extension
jobs:
Expand All @@ -14,12 +13,23 @@ jobs:
node-version: 12
- run: npm ci
- name: Publish to Visual Studio Marketplace
id: publishToVSMarketplace
uses: HaaLeo/publish-vscode-extension@v0
with:
pat: ${{ secrets.VS_MARKETPLACE_TOKEN }}
registryUrl: https://marketplace.visualstudio.com
- name: Publish to Open VSX Registry
id: publishToOpenVSX
continue-on-error: true
uses: HaaLeo/publish-vscode-extension@v0
with:
pat: ${{ secrets.OPEN_VSX_TOKEN }}
- name: Upload extension vsix
uses: actions/upload-release-asset@v1.0.2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ${{ steps.publishToVSMarketplace.outputs.vsixPath }}
asset_name: haskell-${{ github.event.release.tag_name }}.vsix
asset_content_type: application/vsix

0 comments on commit 77ddd59

Please sign in to comment.