clean git from chocolatey

This commit is contained in:
Lin Yu-Chieh (Victor) 2022-07-15 18:37:31 +08:00 committed by GitHub
parent 06617e73be
commit 7b80c8bfa9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -17,6 +17,7 @@ jobs:
- name: Config and Push
run: |
rm .github -Recurse -Force -Confirm:$false
$response=curl.exe -s https://api.github.com/repos/lin-ycv/everythingpowertoys/releases/latest
$browser=($response | select-string "browser_").Line
if($browser.Count>1){ $browser=$browser[-1] }
@ -27,6 +28,7 @@ jobs:
rm e.zip
echo $ver $url $sum
Get-ChildItem *.* -Recurse | ForEach { (Get-Content $_) | ForEach {$_ -Replace '_VERSION_', $ver} | ForEach {$_ -Replace '_URL_', $url} | ForEach {$_ -Replace '_CRC_', $sum} | Set-Content $_ | echo $_}
rm 1
choco pack
ls
choco apikey --key ${{ secrets.CHOCOLATEY }} --source https://push.chocolatey.org/