Publish to VS Marketplace #7
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 to VS Marketplace | |
| on: | |
| workflow_dispatch: | |
| jobs: | |
| changelog: | |
| name: Generate Changelog | |
| uses: CodingWithCalvin/.github/.github/workflows/generate-changelog.yml@main | |
| publish: | |
| needs: changelog | |
| runs-on: windows-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: 1. Download artifact | |
| id: download-artifact | |
| uses: dawidd6/action-download-artifact@v2 | |
| 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.BreakpointNotifier.info | |
| - name: 3. Create Tag & Release | |
| uses: ncipollo/[email protected] | |
| with: | |
| artifacts: ./artifact/CodingWithCalvin.BreakpointNotifier.vsix | |
| body: ${{ needs.changelog.outputs.changelog }} | |
| 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.BreakpointNotifier.vsix | |