Publish Extension #19
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish Extension | |
on: workflow_dispatch | |
jobs: | |
publish_extension: | |
name: Publish Extension | |
runs-on: [ubuntu-latest] | |
permissions: | |
contents: write | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 16.x | |
- run: npm install | |
- name: Get package info | |
id: package | |
uses: kylejrp/[email protected] | |
- name: Publish to Open VSX Registry | |
uses: HaaLeo/publish-vscode-extension@v1 | |
id: publishToOpenVSX | |
with: | |
pat: ${{ secrets.VSXAUTH }} | |
- name: Publish to Visual Studio Marketplace | |
uses: HaaLeo/publish-vscode-extension@v1 | |
with: | |
pat: ${{ secrets.MARKETPLACEAUTH}} | |
registryUrl: https://marketplace.visualstudio.com | |
extensionFile: ${{ steps.publishToOpenVSX.outputs.vsixPath }} | |
- name: Publish Release | |
uses: softprops/action-gh-release@v1 | |
with: | |
draft: true | |
name: Extension Release ${{ steps.package.outputs.version }} | |
tag_name: ${{ steps.package.outputs.version }} | |
body_path: .github/release.txt | |
files: ${{ steps.publishToOpenVSX.outputs.vsixPath }} |