Quantcast
Channel: Active questions tagged nuget-package - Stack Overflow
Viewing all articles
Browse latest Browse all 3067

Unable to publish nuget package - GitHub Actions [closed]

$
0
0

I've built a GitHub action to push my nuget package to GitHub registry based on GitHub docs. When it runs it compiles well but on push it runs to the following error.

Pushing XXXXX.1.0.0.nupkg to 'https://nuget.pkg.github.com/MYACCOUNT'PUT https://nuget.pkg.github.com/MYACCOUNT/ warn : invalid repo host'nuget.pkg.github.com', only github (github.com) repositories allowed  BadRequesthttps://nuget.pkg.github.com/MYACCOUNT/ 42ms error: Response status code does not indicate success: 400 (Bad Request).

Error message is not too verbose.

Api-key is registered in Personal access tokens. It has write/read:packages and full control of private repository permission.

What do I miss here?

Related yaml is the following:

name: publish to nugeton:  push:    branches:      - masterjobs:  publish:    name: build, pack & publish    runs-on: ubuntu-latest    steps:      - uses: actions/checkout@v2      - name: Pack        run: dotnet pack XXX.csproj -c Release      - name: Prep packages        run: dotnet nuget add source --username MYACOUNTNAME --password *** --store-password-in-clear-text --name github "https://nuget.pkg.github.com/MYACCOUNTNAME/index.json"      - name: Publish to GitHub packages         run: dotnet nuget push bin/Release/*.nupkg --api-key ***  --source "github"

Viewing all articles
Browse latest Browse all 3067

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>