From d795f2249afabdb8c399f95b2e85f3790c3db080 Mon Sep 17 00:00:00 2001 From: Teo Voinea <58236992+tevoinea@users.noreply.github.com> Date: Fri, 19 Nov 2021 15:52:12 -0500 Subject: [PATCH] Update build-release.yml --- .github/workflows/build-release.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/build-release.yml b/.github/workflows/build-release.yml index 7f05115df..4a11962fe 100644 --- a/.github/workflows/build-release.yml +++ b/.github/workflows/build-release.yml @@ -48,6 +48,7 @@ jobs: - name: Upload Extension Release Asset id: upload-component-detection-release-asset + if: startsWith(github.ref, 'refs/tags/') uses: actions/upload-release-asset@v1.0.2 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -58,15 +59,18 @@ jobs: asset_content_type: application/zip - name: Add NuGet publication source for Github packages + if: startsWith(github.ref, 'refs/tags/') run: dotnet nuget add source https://nuget.pkg.github.com/microsoft/index.json --password $GITHUB_TOKEN --username notused --store-password-in-clear-text --name cgwriter env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Generate NuGet packages + if: startsWith(github.ref, 'refs/tags/') run: dotnet pack -o dist-nuget -c Release # dotnet nuget push seems to have some probs, use curl for GH - name: Publish nuget + if: startsWith(github.ref, 'refs/tags/') run: | for f in ./dist-nuget/*.nupkg do