@@ -2,9 +2,6 @@ name: Publish to VS Marketplace
2
2
3
3
on :
4
4
workflow_dispatch :
5
- push :
6
- tags :
7
- - ' v[0-9]+.[0-9]+.[0-9]+.[0-9]+'
8
5
9
6
jobs :
10
7
publish :
@@ -20,24 +17,26 @@ jobs:
20
17
github_token : ${{secrets.GH_SECRET}}
21
18
workflow : release_build_and_deploy.yml
22
19
workflow_conclusion : success
23
-
24
- - name : 2. Publish Release to Marketplace
20
+
21
+ - name : 2. Parse Artifact Manifest
22
+ id : artifact_manifest
23
+ uses : ActionsTools/read-json-action@main
24
+ with :
25
+ file_path : ./artifact/CodingWithCalvin.OpenInNotepadPlusPlus.Vsix.x64.info
26
+
27
+ - name : 3. Publish Release to Marketplace
25
28
uses : CodingWithCalvin/GHA-VSMarketplacePublisher@v1
26
29
with :
27
30
marketplace-pat : ${{ secrets.VS_PAT }}
28
31
publish-manifest-path : ./src/extension.manifest.json
29
32
vsix-path : ./artifact/CodingWithCalvin.OpenInNotepadPlusPlus.Vsix.x64.vsix
30
33
31
- - name : 3 . Create Release
34
+ - name : 4 . Create Tag & Release
32
35
33
36
with :
34
37
artifacts : ./artifact/CodingWithCalvin.OpenInNotepadPlusPlus.Vsix.x64.vsix
35
38
generateReleaseNotes : true
36
39
makeLatest : true
37
40
token : ${{secrets.GH_SECRET}}
38
-
39
- - name : 4. Create Tag
40
- uses : rickstaa/action-create-tag@v1
41
- with :
42
- tag : " v"
43
- force_push_tag : true
41
+ commit : ${{ steps.artifact_manifest.outputs.sha }}
42
+ tag : " v${{steps.artifact_manifest.outputs.version }}"
0 commit comments