Skip to content

Commit

Permalink
Publish releases to VSCode Marketplace through GitHub workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Rpinski committed Sep 10, 2024
1 parent 0515168 commit 9923c8f
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,14 @@ jobs:
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

- name: Publish to VSCode Marketplace
if: startsWith(github.ref, 'refs/tags/v')
shell: bash
run: |
buildtools/publish-vsix
env:
VSCE_PAT: ${{secrets.VSCODE_TOKEN}}

- name: Publish to OpenVSIX
if: startsWith(github.ref, 'refs/tags/v')
shell: bash
Expand Down
7 changes: 7 additions & 0 deletions buildtools/publish-vsix
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/usr/bin/env sh

export DOTNET_NOLOGO=true
SEMVER=`dotnet dotnet-gitversion -showvariable SemVer`
VSIX_FILENAME="artifacts/shebang-snippets-$SEMVER.vsix"

npx -y vsce publish --no-git-tag-version -i $VSIX_FILENAME

0 comments on commit 9923c8f

Please sign in to comment.