From fc06d4f5d7bafcdb86ce32df899e08deb5171877 Mon Sep 17 00:00:00 2001 From: Daniel Ziltener Date: Sun, 1 Mar 2020 20:28:19 +0100 Subject: [PATCH] Trying to directly push to chocolatey --- .circleci/config.yml | 6 ++++++ build.ps1 | 10 ++-------- 2 files changed, 8 insertions(+), 8 deletions(-) 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