From 09f9127516f8f4aa93bff792fa0b501d8c767dd6 Mon Sep 17 00:00:00 2001 From: "Calvin A. Allen" Date: Mon, 13 May 2024 19:14:15 -0400 Subject: [PATCH] Update publish.yml [skip ci] --- .github/workflows/publish.yml | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 74f7ff3..74d6ccb 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -14,7 +14,7 @@ jobs: id: download-artifact uses: dawidd6/action-download-artifact@v2 with: - github_token: ${{secrets.GH_SECRET}} + github_token: ${{ secrets.GH_SECRET }} workflow: release_build_and_deploy.yml workflow_conclusion: success @@ -24,19 +24,22 @@ jobs: with: file_path: ./artifact/CodingWithCalvin.OpenBinFolder.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.OpenBinFolder.vsix - - - name: 4. Create Tag & Release + - name: 3. Create Tag & Release uses: ncipollo/release-action@v1.14.0 with: artifacts: ./artifact/CodingWithCalvin.OpenBinFolder.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.OpenBinFolder.vsix + +