Trying to directly push to chocolatey

This commit is contained in:
Daniel Ziltener 2020-03-01 20:28:19 +01:00
parent d8065bdc83
commit fc06d4f5d7
2 changed files with 8 additions and 8 deletions

View file

@ -6,6 +6,12 @@ orbs:
jobs: jobs:
build: build:
executor: win/default executor: win/default
environment:
version: '5.2.0'
binaryversion: '11'
steps: steps:
- checkout - 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: .\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

View file

@ -1,11 +1,6 @@
#Set-Variable -Name "version" -Value "4.12.0" #Set-Variable -Name "version" -Value "4.12.0"
$version = '5.2.0' #$version = '5.2.0'
$binaryversion=11 #$binaryversion=11
# Preventive cleanup
Remove-Item -Recurse -Force chickenbuild
Remove-Item -Force chicken.*.nupkg
Remove-Item -Recurse -Force chicken-*
# Fetching and unpacking remote files # Fetching and unpacking remote files
Install-Module -Name 7Zip4Powershell -Force -Scope CurrentUser Install-Module -Name 7Zip4Powershell -Force -Scope CurrentUser
@ -79,4 +74,3 @@ cd chicken
choco pack choco pack
cd .. cd ..
mv .\chicken\chicken.$version.nupkg .\ mv .\chicken\chicken.$version.nupkg .\
Remove-Item -Recurse -Force chicken