Skip to content

Commit

Permalink
Automate chocolatey deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyrrrz committed Dec 31, 2017
1 parent efa2b05 commit 2cfa20a
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Deploy/Prepare.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,10 @@ $files += Get-ChildItem -Path "$PSScriptRoot\Portable\*";

# Pack into archive
New-Item "$PSScriptRoot\Portable\bin" -ItemType Directory -Force
$files | Compress-Archive -DestinationPath "$PSScriptRoot\Portable\bin\LightBulb-Portable.zip" -Force
$files | Compress-Archive -DestinationPath "$PSScriptRoot\Portable\bin\LightBulb-Portable.zip" -Force

# --- CHOCOLATEY ---

# Create package
New-Item "$PSScriptRoot\Choco\bin\" -ItemType Directory -Force
choco pack $PSScriptRoot\Choco\lightbulb.nuspec --out $PSScriptRoot\Choco\bin\
11 changes: 11 additions & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,24 @@ artifacts:
name: LightBulb-Installer.exe
- path: Deploy\Portable\bin\LightBulb-Portable.zip
name: LightBulb-Portable.zip
- path: Deploy\Choco\bin\LightBulb*.nupkg
name: LightBulb-Choco.nupkg

deploy:
- provider: GitHub
auth_token:
secure: sjQHWRw29AMiVMn3MtidtWnAzAf1mJ+mkJ/7h1B9TIAHhkFrqwMK7LtXV+uNJ9AO
artifact: LightBulb-Installer.exe,LightBulb-Portable.zip
draft: true
on:
branch: master
appveyor_repo_tag: true
- provider: NuGet
server: https://chocolatey.org/
api_key:
secure: f9mIs7girEeCzz+Il/rVM7H9i9N0D8pez22hLRMx24C91P76Hi7JiB0T8RxsJ2TJ
artifact: LightBulb-Choco.nupkg
skip_symbols: true
on:
branch: master
appveyor_repo_tag: true

0 comments on commit 2cfa20a

Please sign in to comment.