diff --git a/.github/workflows/do_release.yml b/.github/workflows/do_release.yml index 2b69f3c..d603c58 100644 --- a/.github/workflows/do_release.yml +++ b/.github/workflows/do_release.yml @@ -64,4 +64,18 @@ jobs: if-no-files-found: error path: ${{github.workspace}}/cpputest-test-adapter-${{steps.gitversion.outputs.semVer}}.vsix - + - name: publish to marketplace + if: github.ref == 'refs/heads/master' + run: npm run publish-buildserver + env: + VSCE_PAT: ${{ secrets.VS_MARKETPLACE_TOKEN }} + + - name: create a release + if: github.ref == 'refs/heads/master' + uses: actions/create-release@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + tag_name: v${{ steps.gitversion.outputs.semVer }} + release_name: v${{ steps.gitversion.outputs.semVer }} + diff --git a/package.json b/package.json index fbbee8c..6108a76 100644 --- a/package.json +++ b/package.json @@ -31,6 +31,7 @@ "rebuild": "npm run clean && npm run build", "package": "npm run build && vsce package", "publish": "npm run rebuild && vsce publish", + "publish-buildserver": "vsce publish", "publish:patch": "npm run rebuild && vsce publish patch", "publish:pre": "npm run rebuild && vsce publish --pre-release" },