Publish Hosts. #106
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Windows Form Designer CI | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
build: | |
timeout-minutes: 10 | |
strategy: | |
matrix: | |
platform: [x64] | |
runs-on: windows-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- uses: nuget/setup-nuget@v1 | |
- name: Install .NET Core | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: 6.0.x | |
- name: Add msbuild to PATH | |
uses: microsoft/setup-msbuild@v1.1 | |
- uses: actions/cache@v4 | |
id: cache | |
with: | |
path: ~/.nuget/packages | |
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }} | |
- uses: actions/cache@v4 | |
id: cache2 | |
with: | |
path: .\packages | |
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.config') }} | |
- name: Restore | |
shell: pwsh | |
run: | | |
dotnet restore PowerShellTools.sln | |
nuget restore PowerShellTools.sln | |
- name: Build Ironman Host | |
shell: pwsh | |
run: | | |
Push-Location IronmanPowerShellHost | |
dotnet publish -f net472 -c Release .\IronmanPowerShellHost.csproj | |
Pop-Location | |
- name: Build | |
shell: pwsh | |
run: | | |
$Version = Get-Content .\WinFormDesigner\version.txt -Raw | |
msbuild PowerShellTools.sln -t:rebuild -p:Configuration=Release -p:Platform=${{ matrix.platform }} -p:Version=$Version |