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:
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

View File

@ -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