Skip to content

Commit faff46a

Browse files
authored
Update build-release.yml (#4)
1 parent 92683b7 commit faff46a

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

.github/workflows/build-release.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ jobs:
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

0 commit comments

Comments
 (0)