File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4848
4949 - name : Upload Extension Release Asset
5050 id : upload-component-detection-release-asset
51+ if : startsWith(github.ref, 'refs/tags/')
5152 uses : actions/upload-release-asset@v1.0.2
5253 env :
5354 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
@@ -58,15 +59,18 @@ jobs:
5859 asset_content_type : application/zip
5960
6061 - name : Add NuGet publication source for Github packages
62+ if : startsWith(github.ref, 'refs/tags/')
6163 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
6264 env :
6365 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
6466
6567 - name : Generate NuGet packages
68+ if : startsWith(github.ref, 'refs/tags/')
6669 run : dotnet pack -o dist-nuget -c Release
6770
6871 # dotnet nuget push seems to have some probs, use curl for GH
6972 - name : Publish nuget
73+ if : startsWith(github.ref, 'refs/tags/')
7074 run : |
7175 for f in ./dist-nuget/*.nupkg
7276 do
You can’t perform that action at this time.
0 commit comments