Skip to content

Commit 64ac53a

Browse files
authored
Create publish.yml
[skip ci]
1 parent dd83c1b commit 64ac53a

1 file changed

Lines changed: 38 additions & 0 deletions

File tree

.github/workflows/publish.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Publish to VS Marketplace
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
tags:
7+
- 'v[0-9]+.[0-9]+.[0-9]+.[0-9]+'
8+
9+
jobs:
10+
publish:
11+
runs-on: windows-latest
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v3
15+
16+
- name: 1. Download artifact
17+
id: download-artifact
18+
uses: dawidd6/action-download-artifact@v2
19+
with:
20+
github_token: ${{secrets.GH_SECRET}}
21+
workflow: release_build_and_deploy.yml
22+
workflow_conclusion: success
23+
24+
- name: 2. Publish Release to Marketplace
25+
uses: CodingWithCalvin/GHA-VSMarketplacePublisher@v1
26+
with:
27+
marketplace-pat: ${{ secrets.VS_PAT }}
28+
publish-manifest-path: ./src/extension.manifest.json
29+
vsix-path: ./artifact/CodingWithCalvin.OpenInNotepadPlusPlus.Vsix.x64.vsix
30+
31+
- name: 3. Create Release
32+
uses: ncipollo/release-action@v1.14.0
33+
with:
34+
artifacts: ./artifact/CodingWithCalvin.OpenInNotepadPlusPlus.Vsix.x64.vsix
35+
generateReleaseNotes: true
36+
makeLatest: true
37+
token: ${{secrets.GH_SECRET}}
38+

0 commit comments

Comments
 (0)