diff --git a/.circleci/config.yml b/.circleci/config.yml index 7a6caef..925300f 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -6,6 +6,12 @@ orbs: jobs: build: executor: win/default + environment: + version: '5.2.0' + binaryversion: '11' steps: - checkout + - run: [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1')) - run: .\build.ps1 + - run: choco apikey --key $CHOCO_API_KEY --source https://push.chocolatey.org + - run: choco push chicken.$version.nupkg --source https://push.chocolatey.org diff --git a/build.ps1 b/build.ps1 index 4400d5a..8b4efd8 100644 --- a/build.ps1 +++ b/build.ps1 @@ -1,11 +1,6 @@ #Set-Variable -Name "version" -Value "4.12.0" -$version = '5.2.0' -$binaryversion=11 - -# Preventive cleanup -Remove-Item -Recurse -Force chickenbuild -Remove-Item -Force chicken.*.nupkg -Remove-Item -Recurse -Force chicken-* +#$version = '5.2.0' +#$binaryversion=11 # Fetching and unpacking remote files Install-Module -Name 7Zip4Powershell -Force -Scope CurrentUser @@ -79,4 +74,3 @@ cd chicken choco pack cd .. mv .\chicken\chicken.$version.nupkg .\ -Remove-Item -Recurse -Force chicken