Skip to content

Commit c560638

Browse files
committed
Fix GitHub action syntax
1 parent 93cd512 commit c560638

1 file changed

Lines changed: 20 additions & 14 deletions

File tree

.github/workflows/publish.yml

Lines changed: 20 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,20 @@
1-
- if: github.ref == 'refs/heads/main'
2-
name: Publish to Visual Studio Marketplace
3-
uses: HaaLeo/publish-vscode-extension@v2
4-
with:
5-
pat: ${{ secrets.VS_MARKETPLACE_TOKEN }}
6-
registryUrl: https://marketplace.visualstudio.com
7-
id: vsmPublish
8-
# TODO: Publish to Open VSX Registry
9-
# - if: github.ref == 'refs/heads/main'
10-
# name: Publish to Open VSX Registry
11-
# uses: HaaLeo/publish-vscode-extension@v2
12-
# with:
13-
# pat: ${{ secrets.OPEN_VSX_REGISTRY_TOKEN }}
14-
# extensionFile: ${{ steps.vsmPublish.outputs.vsixPath }}
1+
on:
2+
push:
3+
branches:
4+
- main
5+
jobs:
6+
publish:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- name: Publish to Visual Studio Marketplace
10+
uses: HaaLeo/publish-vscode-extension@v2
11+
with:
12+
pat: ${{ secrets.VS_MARKETPLACE_TOKEN }}
13+
registryUrl: https://marketplace.visualstudio.com
14+
id: vsmPublish
15+
# TODO: Publish to Open VSX Registry
16+
# - name: Publish to Open VSX Registry
17+
# uses: HaaLeo/publish-vscode-extension@v2
18+
# with:
19+
# pat: ${{ secrets.OPEN_VSX_REGISTRY_TOKEN }}
20+
# extensionFile: ${{ steps.vsmPublish.outputs.vsixPath }}

0 commit comments

Comments
 (0)