Skip to content

Commit 91bb6b8

Browse files
committed
Trying to fix package pipeline
1 parent aa9fb94 commit 91bb6b8

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

.github/workflows/publish-nuget-packages.yaml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,10 @@ jobs:
1212
- uses: actions/setup-dotnet@v1
1313
with:
1414
dotnet-version: '5.0.100'
15-
- run: arrTag=(${GITHUB_REF//\// })
16-
- run: VERSION="${arrTag[2]}"
17-
- run: echo "Version is $VERSION"
18-
- run: dotnet pack src/prometheus-net.DotNetRuntime --include-symbols -c "Release" -p:PackageVersion=$VERSION --output "build/"
19-
- run: dotnet nuget push "build/prometheus-net.DotNetRuntime.*.symbols.nupkg" -k ${{ secrets.NUGET_API_KEY }} -s "https://api.nuget.org/v3/index.json" -n true
15+
- run: |
16+
echo "Github ref is ${GITHUB_REF}"
17+
arrTag=(${GITHUB_REF//\// })
18+
VERSION="${arrTag[2]}"
19+
echo "Version: $VERSION"
20+
dotnet pack src/prometheus-net.DotNetRuntime --include-symbols -c "Release" -p:PackageVersion=$VERSION --output "build/"
21+
dotnet nuget push "build/prometheus-net.DotNetRuntime.*.symbols.nupkg" -k ${{ secrets.NUGET_API_KEY }} -s "https://api.nuget.org/v3/index.json" -n true

0 commit comments

Comments
 (0)