How to build and push chocolatey package with Travis CI

You can use this code for your .travis.yml:

os: windows
language: shell
branches:
  only:
  - master
script:
- choco pack path_to\\package.nuspec
after_script:
- choco apikey --key $CHOCOAPIKEY --source https://push.chocolatey.org/
- choco push

Hide your private api key in CHOCOAPIKEY secret variable. Enjoy!


30 Words

2019-08-24 08:02 +0300