Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MyGet Feed #8

Open
KennethB opened this issue Jun 16, 2016 · 1 comment
Open

MyGet Feed #8

KennethB opened this issue Jun 16, 2016 · 1 comment

Comments

@KennethB
Copy link
Owner

@neutmute - Can we push to chocolatey using the myget feed or do I still need to build and push using the chocolatey scripts?

@neutmute
Copy link
Contributor

That is possible but I didn't implement it since I didn't have the API key :)

I have powershell like below for my nuget packages. You stash your API key in an environment variable and the script makes a decision on whether to push or not by its existence. MyGet supports this and you can also add the API key to your local machine.

function nugetPublish{

    if(Test-Path Env:\nugetapikey ){
        _WriteOut -ForegroundColor $ColorScheme.Banner "Nuget publish"
        &$env:nuget push .\_output\* $env:nugetapikey
    }
    else{
        _WriteOut -ForegroundColor Yellow "nugetapikey environment variable not detected. Skipping nuget publish"
    }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants