Skip to content

Commit 0568a92

Browse files
committed
Update Chocolatey.yml
1 parent 3857511 commit 0568a92

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/Chocolatey.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)