Introducing “JetBrains Marketplace Publisher”, a GitHub Action that assists you in publishing your Visual Studio extensions to the marketplace through a workflow on GitHub!
Imagine you have a workflow in GitHub that builds your extension and posts the resulting ZIP file as an artifact to the run and then you have to download that artifact and upload to the marketplace MANUALLY. Swap out the artifact upload with this new extension, and automate the whole thing. Its as easy as referencing the new Action in your workflow -
- name: JetBrains Marketplace Publisher
uses: CodingWithCalvin/GHA-JBMarketplacePublisher@v1
with:
# REQUIRED
marketplace-pat: $
archive-path: ./src/outputFolder/extension.zip
# ONE OF THE FOLLOWING IS REQUIRED, BUT NOT BOTH
plugin-id: 1000
plugin-xml-id: "1001"
# OPTIONAL
channel: stable
is-hidden: false
Provide your secret PAT, your archive, and one of plugin-id or plugin-xml-id - then sit back and relax while all the magic happens for you. Note there are a couple other optional parameters to control which channel your plugin is released to and whether to keep it hidden after approval.
Of course, its open source, so feel free to peruse the source code, create issues, and have discussions on ways we can make this tool even better!
This post, "Introducing the "JetBrains Marketplace Publisher" GitHub Action", first appeared on https://www.codingwithcalvin.net/introducing-the-jetbrains-marketplace-publisher-github-action/