diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9bfe7767..133c65a9 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -550,6 +550,13 @@ jobs: environment: package if: startsWith(github.ref, 'refs/tags/') steps: + - name: Force old Powershell version + run: | + set "extractPath=C:\Program Files\PowerShell\7" + curl -sLO https://github.com/PowerShell/PowerShell/releases/download/v7.2.17/PowerShell-7.2.17-win-x64.zip + RMDIR "%extractPath%" /S /Q + 7z x PowerShell-7.2.17-win-x64.zip -o"%extractPath%" + pwsh --version - uses: actions/checkout@v4 - name: Install AzureSignTool run: dotnet tool install --global AzureSignTool @@ -557,10 +564,7 @@ jobs: - name: Install cargo-msix run: cargo install cargo-msix - name: Install StoreBroker - run: | - # TODO Revert back to installing from the PowerShell Gallery once they have uploaded a fixed version there - # Install-Module -Name StoreBroker -Force - git clone https://github.com/microsoft/StoreBroker.git + run: Install-Module -Name StoreBroker -Force - name: Download and extract bundled Julia versions run: | $x64Versions = Get-Content versiondb\versiondb-x86_64-pc-windows-msvc.json | ConvertFrom-Json @@ -616,7 +620,6 @@ jobs: - name: Package Windows Store payload run: | md (Join-Path $env:GITHUB_WORKSPACE "storepackage") - Import-Module .\StoreBroker\StoreBroker\StoreBroker.psd1 -Verbose New-SubmissionPackage -ConfigPath (Join-Path $env:GITHUB_WORKSPACE "deploy" "winstoresubmission" "SBConfig.json") -PDPRootPath (Join-Path $env:GITHUB_WORKSPACE "deploy" "winstoresubmission" "pdps") -ImagesRootPath (Join-Path $env:GITHUB_WORKSPACE "deploy" "winstoresubmission" "images") -AppxPath target\msix\winstoremsix\*.appxbundle -OutPath (Join-Path $env:GITHUB_WORKSPACE "storepackage") -OutName Upload - name: Rename and move juliainstaller run: |