Skip to content

Commit

Permalink
workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
bneumann committed Oct 2, 2024
1 parent d28f4bc commit a0e86de
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
16 changes: 15 additions & 1 deletion .github/workflows/do_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down

0 comments on commit a0e86de

Please sign in to comment.