Skip to content

Commit cd730aa

Browse files
committed
ci: replace broken publish action with direct nuget push
1 parent f96cd92 commit cd730aa

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

.github/workflows/dotnetcore.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)