From d5fef195609f22102575c5c0e13dbacb648317f1 Mon Sep 17 00:00:00 2001 From: "Calvin A. Allen" Date: Mon, 13 May 2024 19:17:32 -0400 Subject: [PATCH] Update publish.yml [skip ci] --- .github/workflows/publish.yml | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index dabb833..ffd6da9 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -24,19 +24,20 @@ jobs: with: file_path: ./artifact/CodingWithCalvin.OpenInNotepadPlusPlus.info - - name: 3. Publish Release to Marketplace - uses: CodingWithCalvin/GHA-VSMarketplacePublisher@v1 - with: - marketplace-pat: ${{ secrets.VS_PAT }} - publish-manifest-path: ./resources/extension.manifest.json - vsix-path: ./artifact/CodingWithCalvin.OpenInNotepadPlusPlus.vsix - - - name: 4. Create Tag & Release + - name: 3. Create Tag & Release uses: ncipollo/release-action@v1.14.0 with: artifacts: ./artifact/CodingWithCalvin.OpenInNotepadPlusPlus.vsix generateReleaseNotes: true makeLatest: true - token: ${{secrets.GH_SECRET}} + token: ${{ secrets.GH_SECRET }} commit: ${{ steps.artifact_manifest.outputs.sha }} - tag: "v${{steps.artifact_manifest.outputs.version }}" + 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.OpenInNotepadPlusPlus.vsix