Skip to content

Commit

Permalink
Update publish-extension.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ahnafnafee committed Sep 23, 2024
1 parent e0871d2 commit e95f75c
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions .github/workflows/publish-extension.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,25 +12,25 @@ jobs:
steps:
- name: Download release artifact
run: "curl -L -H 'Authorization: token ${{ secrets.GITHUB_TOKEN }}' -H 'Accept: application/octet-stream' ${{ github.event.release.assets[0].url }} --output extension.vsix"
# - name: Validate extension file
# run: unzip -f extension.vsix extension/package.json
# - name: Publish to Open VSX Registry
# uses: HaaLeo/publish-vscode-extension@v1
# with:
# pat: ${{ secrets.OPEN_VSX_TOKEN }}
# extensionFile: extension.vsix
- name: Validate extension file
run: unzip -f extension.vsix extension/package.json
- name: Publish to Open VSX Registry
uses: HaaLeo/publish-vscode-extension@v1
with:
pat: ${{ secrets.OPEN_VSX_TOKEN }}
extensionFile: extension.vsix
vs:
name: "Visual Studio Marketplace"
if: endsWith(github.event.release.assets[0].name, '.vsix')
runs-on: ubuntu-latest
steps:
- name: Download release artifact
run: "curl -L -H 'Authorization: token ${{ secrets.GITHUB_TOKEN }}' -H 'Accept: application/octet-stream' ${{ github.event.release.assets[0].url }} --output extension.vsix"
# - name: Validate extension file
# run: unzip -f extension.vsix extension/package.json
# - name: Publish to Visual Studio Marketplace
# uses: HaaLeo/publish-vscode-extension@v1
# with:
# pat: ${{ secrets.VS_MARKETPLACE_TOKEN }}
# registryUrl: https://marketplace.visualstudio.com
# extensionFile: extension.vsix
- name: Validate extension file
run: unzip -f extension.vsix extension/package.json
- name: Publish to Visual Studio Marketplace
uses: HaaLeo/publish-vscode-extension@v1
with:
pat: ${{ secrets.VS_MARKETPLACE_TOKEN }}
registryUrl: https://marketplace.visualstudio.com
extensionFile: extension.vsix

0 comments on commit e95f75c

Please sign in to comment.