I’m trying to push the NuGet package to GitHub Packages in mine, but I can’t push them.
I’ve downloaded NuGet package helloworld.1.3.0.15.nupkg
from nuget.org
for testing.
With nuget.exe;
>nuget.exe push helloworld.1.3.0.15.nupkg -Source "GitHub"
Pushing helloworld.1.3.0.15.nupkg to 'https://nuget.pkg.github.com/haeillee'...
PUT https://nuget.pkg.github.com/haeillee/
WARNING: The expected resource was not found.
NotFound https://nuget.pkg.github.com/haeillee/ 847ms
Response status code does not indicate success: 404 (Not Found).
With curl;
$ curl -vX PUT -u "haeillee:GITHUB_TOKEN" -F package=@helloworld.1.3.0.15.nupkg https://nuget.pkg.github.com/haeillee/
* STATE: INIT => CONNECT handle 0x29919b0; line 1392 (connection #-5000)
* Added connection 0. The cache now contains 1 members
* STATE: CONNECT => WAITRESOLVE handle 0x29919b0; line 1428 (connection #0)
* Trying 52.79.52.209...
* TCP_NODELAY set
* STATE: WAITRESOLVE => WAITCONNECT handle 0x29919b0; line 1509 (connection #0)
* Connected to nuget.pkg.github.com (52.79.52.209) port 443 (#0)
* STATE: WAITCONNECT => SENDPROTOCONNECT handle 0x29919b0; line 1561 (connection #0)
* Marked for [keep alive]: HTTP default
* ALPN, offering h2
* ALPN, offering http/1.1
* Cipher selection: ALL:!EXPORT:!EXPORT40:!EXPORT56:!aNULL:!LOW:!RC4:@STRENGTH
* successfully set certificate verify locations:
* CAfile: C:/Program Files/Git/mingw64/ssl/certs/ca-bundle.crt
CApath: none
* TLSv1.2 (OUT), TLS header, Certificate Status (22):
* TLSv1.2 (OUT), TLS handshake, Client hello (1):
* TLSv1.2 (IN), TLS handshake, Server hello (2):
* TLSv1.2 (IN), TLS handshake, Certificate (11):
* TLSv1.2 (IN), TLS handshake, Server key exchange (12):
* TLSv1.2 (IN), TLS handshake, Server finished (14):
* TLSv1.2 (OUT), TLS handshake, Client key exchange (16):
* TLSv1.2 (OUT), TLS change cipher, Client hello (1):
* TLSv1.2 (OUT), TLS handshake, Finished (20):
* STATE: SENDPROTOCONNECT => PROTOCONNECT handle 0x29919b0; line 1575 (connection #0)
* TLSv1.2 (IN), TLS change cipher, Client hello (1):
* TLSv1.2 (IN), TLS handshake, Finished (20):
* SSL connection using TLSv1.2 / ECDHE-RSA-AES128-GCM-SHA256
* ALPN, server accepted to use http/1.1
* Server certificate:
* subject: C=US; ST=California; L=San Francisco; O=GitHub, Inc.; CN=*.pkg.github.com
* start date: Apr 26 00:00:00 2019 GMT
* expire date: Apr 30 12:00:00 2020 GMT
* subjectAltName: host "nuget.pkg.github.com" matched cert's "*.pkg.github.com"
* issuer: C=US; O=DigiCert Inc; OU=www.digicert.com; CN=DigiCert SHA2 High Assurance Server CA
* SSL certificate verify ok.
* STATE: PROTOCONNECT => DO handle 0x29919b0; line 1596 (connection #0)
* Server auth using Basic with user 'haeillee'
> PUT /haeillee/ HTTP/1.1
> Host: nuget.pkg.github.com
> Authorization: Basic aGFlaWxsZWU6NjE1YmFhMGFkMmQ3Njg5YTYzMTM4MmM0MTAzOGU5ZDllMDU0NjllYg==
> User-Agent: curl/7.58.0
> Accept: */*
> Content-Length: 17677
> Content-Type: multipart/form-data; boundary=------------------------a0e5cb38319d14d0
> Expect: 100-continue
>
* STATE: DO => DO_DONE handle 0x29919b0; line 1658 (connection #0)
* STATE: DO_DONE => WAITPERFORM handle 0x29919b0; line 1783 (connection #0)
* STATE: WAITPERFORM => PERFORM handle 0x29919b0; line 1799 (connection #0)
* HTTP 1.1 or later with persistent connection, pipelining supported
< HTTP/1.1 100 Continue
* HTTP 1.1 or later with persistent connection, pipelining supported
< HTTP/1.1 404 Not Found
< Date: Wed, 04 Dec 2019 11:09:01 GMT
< Content-Type: application/json; charset=utf-8
< Content-Length: 49
< Content-Security-Policy: default-src 'none';
* Server GitHub Registry is not blacklisted
< Server: GitHub Registry
< Strict-Transport-Security: max-age=31536000;
< X-Content-Type-Options: nosniff
< X-Frame-Options: DENY
< X-Nuget-Warning: The expected resource was not found.
< X-Xss-Protection: 1; mode=block
< X-GitHub-Request-Id: FF85:2181:1B842:32EF4:5DE793CC
* HTTP error before end of send, stop sending
* Marked for [closure]: Stop sending data before everything sent
<
{"error":"The expected resource was not found."}
* STATE: PERFORM => DONE handle 0x29919b0; line 1968 (connection #0)
* multi_done
* Closing connection 0
* The cache now contains 0 members
* TLSv1.2 (OUT), TLS alert, Client hello (1):
The same error has been founded.
Absolutely, I’ve set all configurations for this (Personal access tokens, apikeys, …).
Should I wait until GitHub Package become stable?