Skip to content

Commit

Permalink
pspreview_
Browse files Browse the repository at this point in the history
  • Loading branch information
tig committed Nov 6, 2023
1 parent 619e844 commit 014cbc2
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,9 @@ jobs:
- name: HACK - Install Latest PowerShell (so we get v7.3+ that uses .net 7)
shell: pwsh
run: |
msiexec.exe /package PowerShell-7.3.9-win-x64.msi /quiet ADD_EXPLORER_CONTEXT_MENU_OPENPOWERSHELL=1 ADD_FILE_CONTEXT_MENU_RUNPOWERSHELL=1 ENABLE_PSREMOTING=1 REGISTER_MANIFEST=1 USE_MU=1 ENABLE_MU=1 ADD_PATH=1
dotnet tool install --global PowerShell
$oldpath = [System.Environment]::GetEnvironmentVariable('PATH', 'Machine')
[System.Environment]::SetEnvironmentVariable('PATH', 'C:\Users\runneradmin\.dotnet\tools;' + $newPath, 'Machine')
- name: Checkout
uses: actions/checkout@v3
Expand All @@ -43,9 +44,12 @@ jobs:
id: build
shell: pwsh
run: |
gci env:* | sort-object name
C:\Users\runneradmin\.dotnet\tools\pwsh -v
C:\Users\runneradmin\.dotnet\tools\pwsh -noprofile -command "Install-Module Microsoft.PowerShell.ConsoleGuiTools -Verbose -Force ; Import-Module Microsoft.PowerShell.ConsoleGuiTools -Verbose -Force ; Install-module -Name ModuleBuilder -Force -SkipPublisherCheck -Scope CurrentUser ; ./build.ps1 -Version ${{ steps.gitversion.outputs.FullSemVer }} -Verbose"
pwsh -v
Install-Module Microsoft.PowerShell.ConsoleGuiTools -Verbose -Force
Import-Module Microsoft.PowerShell.ConsoleGuiTools -Verbose -Force
Install-module -Name ModuleBuilder -Force -SkipPublisherCheck -Scope CurrentUser
./build.ps1 -Version ${{ steps.gitversion.outputs.FullSemVer }} -Verbose
- name: Upload Build Output
uses: actions/upload-artifact@v3
Expand Down

0 comments on commit 014cbc2

Please sign in to comment.