Skip to content

Commit 5110480

Browse files
committed
Only match on nupkg files
1 parent 29a6d7b commit 5110480

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

cicd/deploy.sh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
NUGET_KEY=$1
22

3-
ls -a
43
cd Release
5-
ls -a
6-
nugetFilename=$(ls -a | grep '.nupkg$')
4+
nugetFilename=$(ls -a | grep -E '[0-9]+\.[0-9]+\.[0-9]+(-[A-Za-z]+([0-9]+)?)?.nupkg$')
75

86
dotnet nuget push $nugetFilename --api-key $NUGET_KEY --source https://api.nuget.org/v3/index.json --skip-duplicate

0 commit comments

Comments
 (0)