File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -63,10 +63,10 @@ jobs:
6363 run : dotnet build --configuration Release --no-restore
6464
6565 - name : Pack
66- run : dotnet pack GoogleMaps.LocationServices/GoogleMaps.LocationServices.csproj --configuration Release --no-restore --output nupkgs
66+ run : |
67+ dotnet pack GoogleMaps.LocationServices/GoogleMaps.LocationServices.csproj --configuration Release --no-restore --output nupkgs
6768
6869 - name : Publish to NuGet
69- uses : rohith/publish-nuget@v2
70- with :
71- PROJECT_FILE_PATH : ./GoogleMaps.LocationServices/GoogleMaps.LocationServices.csproj
72- NUGET_KEY : ${{ secrets.NUGET_API_KEY }}
70+ run : |
71+ VERSION=$(grep -oPm1 '(?<=<Version>)[^<]+' GoogleMaps.LocationServices/GoogleMaps.LocationServices.csproj)
72+ dotnet nuget push "nupkgs/GoogleMaps.LocationServices.${VERSION}.nupkg" -k "${{ secrets.NUGET_API_KEY }}" -s https://api.nuget.org/v3/index.json --skip-duplicate
You can’t perform that action at this time.
0 commit comments