Skip to content

Bump version & update deps #66

Bump version & update deps

Bump version & update deps #66

Workflow file for this run

name: Windows
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
strategy:
matrix:
configuration: [Release]
runs-on: windows-latest
env:
Solution_Name: HomeLive.sln
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 9.0.x
- name: Checkout PKHeX.Core
uses: actions/checkout@v4
with:
repository: kwsch/PKHeX
ref: master
path: PKHeX
- name: Build PKHeX.Core
run: |
cd PKHeX/PKHeX.Core
dotnet restore
dotnet build --configuration Release
- name: Restore NuGet packages
run: dotnet restore $env:Solution_Name
- name: Replace PKHeX.Core NuGet DLL
shell: pwsh
run: |
$PackageBaseFolder = Join-Path -Path $env:USERPROFILE -ChildPath ".nuget\packages\pkhex.core"
$LatestVersionFolder = Get-ChildItem -Path $PackageBaseFolder -Directory | Sort-Object {[version]$_.Name} -Descending | Select-Object -First 1
$NuGetPackageFolder = Join-Path -Path $LatestVersionFolder.FullName -ChildPath "lib\net9.0"
$PkhexCoreDllSource = Join-Path -Path $env:GITHUB_WORKSPACE -ChildPath "PKHeX/PKHeX.Core/bin/Release/net9.0/PKHeX.Core.dll"
$PkhexCoreDllDest = Join-Path -Path $NuGetPackageFolder -ChildPath "PKHeX.Core.dll"
Copy-Item -Path $PkhexCoreDllSource -Destination $PkhexCoreDllDest -Force
- name: Build HomeLive.Plugins
run: dotnet build $env:Solution_Name --configuration Release --no-restore
- name: Upload Plugins artifacts
uses: actions/upload-artifact@v4
with:
name: HomeLive.Plugins
path: |
HomeLive.Plugins/bin
!HomeLive.Plugins/bin/Release/net9.0-windows7.0/PKHeX.Core.dll