File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -17,14 +17,17 @@ jobs:
1717
1818 - name : Pack and push to Chocolatey
1919 run : |
20+ # $Latest_Release.Sophia_Script_Windows_11_PowerShell_5_1
2021 Write-Verbose -Message $env:LatestRelease -Verbose
2122
2223 # Replace variables with script latest versions
2324 (Get-Content -Path "Scripts\Chocolatey\sophia.nuspec" -Encoding utf8NoBOM -Raw) -replace ("SophiaScriptVersion", "${{ env.LatestRelease }}") | Set-Content -Path "Scripts\Chocolatey\sophia.nuspec" -Encoding utf8NoBOM -Force
2425
2526 choco pack Scripts\Chocolatey\sophia.nuspec --outputdirectory Scripts\Chocolatey
2627 choco apikey --key ${{ secrets.CHOCOLATEY_SECRET }} --source https://push.chocolatey.org/
28+
2729 [xml]$Version = Get-Content -Path Scripts\Chocolatey\sophia.nuspec
2830 [string]$Version = $Version.package.metadata.version
2931 Write-Verbose -Message $Version -Verbose
32+
3033 choco push Scripts\Chocolatey\sophia.$Version.nupkg --source https://push.chocolatey.org/ --yes
You can’t perform that action at this time.
0 commit comments