Skip to content

Commit 14a3cff

Browse files
author
Hai
committed
update yml
1 parent 9942925 commit 14a3cff

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

.github/workflows/tag.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1-
name: .NET
2-
31
on:
42
push:
5-
branches: [ main ]
6-
pull_request:
7-
branches: [ main ]
3+
tags:
4+
- '*'
5+
name: Release package
86

97
jobs:
108
build:

publish-packages.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
#!/usr/bin/env bash
22
cd src
3+
echo "src"
34
for directory in *; do
5+
echo ${directory}
46
if [[ -d ${directory} ]]; then
57
cd ${directory}
68
dotnet pack *.csproj --include-symbols -c Release --output "."
79
sleep 5
8-
dotnet nuget push -s ${NUGET_API_URL} -k ${NUGET_KEY} "${directory}.1.0.0.symbols.nupkg"
10+
dotnet nuget push -s ${NUGET_API_URL} -k ${NUGET_KEY} "${directory}.${TAG}.symbols.nupkg"
911
echo "success"
1012
if [[ ${?} != 0 ]]
1113
then

0 commit comments

Comments
 (0)