Skip to content

Commit 5824a4c

Browse files
authored
Update publish.yml
[skip ci]
1 parent 1ca23ee commit 5824a4c

File tree

1 file changed

+12
-11
lines changed

1 file changed

+12
-11
lines changed

.github/workflows/publish.yml

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -23,20 +23,21 @@ jobs:
2323
uses: ActionsTools/read-json-action@main
2424
with:
2525
file_path: ./artifact/CodingWithCalvin.SuperClean.info
26-
27-
- name: 3. Publish Release to Marketplace
28-
uses: CodingWithCalvin/GHA-VSMarketplacePublisher@v1
29-
with:
30-
marketplace-pat: ${{ secrets.VS_PAT }}
31-
publish-manifest-path: ./resources/extension.manifest.json
32-
vsix-path: ./artifact/CodingWithCalvin.SuperClean.vsix
33-
34-
- name: 4. Create Tag & Release
26+
27+
- name: 3. Create Tag & Release
3528
uses: ncipollo/[email protected]
3629
with:
3730
artifacts: ./artifact/CodingWithCalvin.SuperClean.vsix
3831
generateReleaseNotes: true
3932
makeLatest: true
40-
token: ${{secrets.GH_SECRET}}
33+
token: ${{ secrets.GH_SECRET }}
4134
commit: ${{ steps.artifact_manifest.outputs.sha }}
42-
tag: "v${{steps.artifact_manifest.outputs.version }}"
35+
tag: ${{ steps.artifact_manifest.outputs.version }}
36+
37+
- name: 4. Publish Release to Marketplace
38+
if: success()
39+
uses: CodingWithCalvin/GHA-VSMarketplacePublisher@v1
40+
with:
41+
marketplace-pat: ${{ secrets.VS_PAT }}
42+
publish-manifest-path: ./resources/extension.manifest.json
43+
vsix-path: ./artifact/CodingWithCalvin.SuperClean.vsix

0 commit comments

Comments
 (0)