-
-
Notifications
You must be signed in to change notification settings - Fork 23
49 lines (41 loc) · 1.55 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: beta
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
runs-on: windows-2019
steps:
- name: Checkout code
uses: actions/checkout@v4
- 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