Skip to content

Publish to VS Marketplace #14

Publish to VS Marketplace

Publish to VS Marketplace #14

Workflow file for this run

name: Publish to VS Marketplace
on:
workflow_dispatch:
permissions:
contents: write
actions: read
jobs:
publish:
runs-on: windows-latest
outputs:
version: ${{ steps.artifact_manifest.outputs.version }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: 1. Download artifact
id: download-artifact
uses: dawidd6/action-download-artifact@v6
with:
workflow: release_build_and_deploy.yml
workflow_conclusion: success
- name: 2. Parse Artifact Manifest
id: artifact_manifest
uses: ActionsTools/read-json-action@main
with:
file_path: ./artifact/CodingWithCalvin.OpenInNotepadPlusPlus.info
- name: 3. Create Tag & Release
uses: ncipollo/[email protected]
with:
artifacts: ./artifact/CodingWithCalvin.OpenInNotepadPlusPlus.vsix
generateReleaseNotes: true
makeLatest: true
commit: ${{ steps.artifact_manifest.outputs.sha }}
tag: ${{ steps.artifact_manifest.outputs.version }}
- name: 4. Publish Release to Marketplace
if: success()
uses: CodingWithCalvin/GHA-VSMarketplacePublisher@v1
with:
marketplace-pat: ${{ secrets.VS_PAT }}
publish-manifest-path: ./resources/extension.manifest.json
vsix-path: ./artifact/CodingWithCalvin.OpenInNotepadPlusPlus.vsix
notify:
needs: publish
uses: CodingWithCalvin/.github/.github/workflows/bluesky-post.yml@main
with:
post_text: |
🚀 Open in Notepad++ v${{ needs.publish.outputs.version }} for #VisualStudio has been released!
[Check out the release notes here!](https://github.com/${{ github.repository }}/releases/tag/${{ needs.publish.outputs.version }})
Marketplace: https://marketplace.visualstudio.com/items?itemName=CodingWithCalvin.VS-OpenInNotepadPlusPlus
secrets:
BLUESKY_USERNAME: ${{ secrets.BLUESKY_USERNAME }}
BLUESKY_APP_PASSWORD: ${{ secrets.BLUESKY_APP_PASSWORD }}