update build yml #6
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: beta | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: windows-2019 | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Add NuGet source | |
run: nuget sources add -Name MonarchSolutions -Source https://www.myget.org/F/monarchsolutions/api/v3/index.json | |
- name: Restore NuGet packages | |
run: nuget restore FreeMote.sln | |
- name: Build solution | |
run: dotnet build -c Release FreeMote.sln | |
- name: Run post-build script | |
shell: pwsh | |
run: | | |
cd $env:GITHUB_WORKSPACE | |
mkdir FreeMoteToolkit -Force | |
Copy-Item FreeMote.Tools.EmtConvert/bin/Release/net48/* FreeMoteToolkit -Recurse -Force | |
Copy-Item FreeMote.Tools.PsbDecompile/bin/Release/net48/* FreeMoteToolkit -Recurse -Force | |
Copy-Item FreeMote.Tools.PsBuild/bin/Release/net48/* FreeMoteToolkit -Recurse -Force | |
Copy-Item FreeMote.Tools.EmtMake/bin/Release/net48/* FreeMoteToolkit -Recurse -Force | |
Copy-Item FreeMote.Tools.Viewer/bin/Release/net48/* FreeMoteToolkit -Recurse -Force | |
del FreeMoteToolkit\*.pdb | |
del FreeMoteToolkit\*.xml | |
mkdir FreeMoteToolkit\lib -Force | |
Move-Item FreeMoteToolkit/*.dll FreeMoteToolkit/lib | |
Move-Item FreeMoteToolkit/x86 FreeMoteToolkit/lib/ | |
Move-Item FreeMoteToolkit/x64 FreeMoteToolkit/lib/ | |
- name: Upload artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: FreeMote-${{ github.workflow }}-${{ github.run_number }} | |
path: FreeMoteToolkit |