Skip to content

Commit 13e3ff1

Browse files
committed
GitHub Action for marketplace.
GitHub actions step for publishing to the VSCode marketplace automatically. Signed-off-by: Alvaro Saurin <[email protected]>
1 parent 0a447ae commit 13e3ff1

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

.github/workflows/publish.yml

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,11 @@ jobs:
4242
- name: Set release version
4343
run: npm version --allow-same-version ${{ steps.info.outputs.SOURCE_TAG }}
4444

45-
- name: Create package project
45+
- name: Publish package to VS Marketplace
46+
run: |
47+
npm install vsce && $(npm bin)/vsce publish -p ${{ secrets.VSCE_TOKEN }}
48+
49+
- name: Create VSIX package
4650
uses: lannonbr/vsce-action@master
4751
with:
4852
args: "package -o vscode-k3d-${{ steps.info.outputs.SOURCE_TAG }}.vsix"
@@ -55,7 +59,7 @@ jobs:
5559
env:
5660
REPO: ${{ github.repository }}
5761

58-
- name: Create Release
62+
- name: Create GitHub Release
5963
id: create_release
6064
uses: actions/create-release@v1
6165
env:
@@ -68,7 +72,7 @@ jobs:
6872
draft: false
6973
prerelease: false
7074

71-
- name: Upload to GitHub release
75+
- name: Upload VXIS to GitHub release
7276
id: upload-release-asset
7377
uses: actions/upload-release-asset@v1
7478
env:
@@ -81,10 +85,3 @@ jobs:
8185
asset_path: ./vscode-k3d-${{ steps.info.outputs.SOURCE_TAG }}.vsix
8286
asset_name: vscode-k3d.vsix
8387
asset_content_type: application/zip
84-
85-
# - name: Publish package to marketplace
86-
# uses: lannonbr/vsce-action@master
87-
# with:
88-
# args: "publish -p $VSCE_TOKEN"
89-
# env:
90-
# VSCE_TOKEN: ${{ secrets.VSCE_TOKEN }}

0 commit comments

Comments
 (0)