Skip to content

Commit a9981d4

Browse files
authored
Update publish.yml
1 parent b298ef8 commit a9981d4

File tree

1 file changed

+11
-12
lines changed

1 file changed

+11
-12
lines changed

.github/workflows/publish.yml

+11-12
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@ name: Publish to VS Marketplace
22

33
on:
44
workflow_dispatch:
5-
push:
6-
tags:
7-
- 'v[0-9]+.[0-9]+.[0-9]+.[0-9]+'
85

96
jobs:
107
publish:
@@ -20,24 +17,26 @@ jobs:
2017
github_token: ${{secrets.GH_SECRET}}
2118
workflow: release_build_and_deploy.yml
2219
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
2528
uses: CodingWithCalvin/GHA-VSMarketplacePublisher@v1
2629
with:
2730
marketplace-pat: ${{ secrets.VS_PAT }}
2831
publish-manifest-path: ./src/extension.manifest.json
2932
vsix-path: ./artifact/CodingWithCalvin.OpenInNotepadPlusPlus.Vsix.x64.vsix
3033

31-
- name: 3. Create Release
34+
- name: 4. Create Tag & Release
3235
uses: ncipollo/[email protected]
3336
with:
3437
artifacts: ./artifact/CodingWithCalvin.OpenInNotepadPlusPlus.Vsix.x64.vsix
3538
generateReleaseNotes: true
3639
makeLatest: true
3740
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

Comments
 (0)