mirror of
https://github.com/lin-ycv/EverythingPowerToys.git
synced 2025-01-08 11:57:59 +08:00
clean git from chocolatey
This commit is contained in:
parent
06617e73be
commit
7b80c8bfa9
2
.github/workflows/chocolately.yml
vendored
2
.github/workflows/chocolately.yml
vendored
@ -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/
|
||||
|
Loading…
Reference in New Issue
Block a user