-
Notifications
You must be signed in to change notification settings - Fork 5
74 lines (64 loc) · 2.69 KB
/
deploy.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
#Note: This is a third party action and currently only supports Linux: https://github.com/marketplace/actions/create-zip-file
name: ${{ env.GitVersion.NuGetVersion }}
env:
solution: '**/MinoriEditorShell.sln'
buildPlatform: Any CPU
buildConfiguration: Release
on:
push:
branches:
- stable
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- uses: microsoft/setup-msbuild@v1.0.2
- name: Install GitVersion
uses: gittools/actions/gitversion/setup@v0.9.7
with:
versionSpec: 5.x
- name: Use NuGet > 5.0.0
uses: nuget/setup-nuget@v1
- name: GitVersion
uses: gittools/actions/gitversion/execute@v0.9.7
with:
updateAssemblyInfo: true
- run: nuget restore ${{env.solution}}
- run: msbuild '${{ env.solution }}' /p:configuration='${{ env.buildConfiguration }}' /p:platform='${{ env.buildPlatform }}'
- name: Copy Nugets to demo folder
run: Copy '${{ env.agent.builddirectory }}/**/*.nupkg' '${{ env.Build.BinariesDirectory }}\Minori-${{ env.GitVersion.NuGetVersion }}\Nugets'
- name: Copy Nuget Files to artifacts
run: Copy '${{ env.agent.builddirectory }}/**/*.nupkg' '${{ github.workspace }}'
- name: Copy SimpleDemo.WPF Files
run: |
Copy 'Demos/SimpleDemo/SimpleDemo.Wpf/bin/Release/*.exe
*.dll
*\*.dll
' '${{ env.Build.BinariesDirectory }}/Minori-${{ env.GitVersion.NuGetVersion }}/Demos/SimpleDemo'
- name: Copy SimpleDemo.RibbonWPF Files
run: |
Copy 'Demos/SimpleDemo/SimpleDemo.RibbonWpf/bin/Release/*.exe
*.dll
*/*.dll
' '${{ env.Build.BinariesDirectory }}/Minori-${{ env.GitVersion.NuGetVersion }}/Demos/SimpleDemo'
- name: Copy MinoriDemo.WPF Files
run: |
Copy 'Demos/MinoriDemo/MinoriDemo.Wpf/bin/Release/*.exe
*.dll
*/*.dll
' '${{ env.Build.BinariesDirectory }}/Minori-${{ env.GitVersion.NuGetVersion }}/Demos/MinoriDemo'
- name: Copy MinoriEditorShell.RibbonWPF Files
run: |
Copy 'Demos/MinoriDemo/MinoriDemo.RibbonWpf/bin/Release/*.exe
*.dll
*/*.dll
' '${{ env.Build.BinariesDirectory }}/Minori-${{ env.GitVersion.NuGetVersion }}/Demos/MinoriDemo'
- # 'Note: This is a third party action and currently only supports Linux: https://github.com/marketplace/actions/create-zip-file'
uses: montudor/action-zip@v0.1.0
with:
args: zip -qq -r ${{ github.workspace }}/Minori-${{ env.GitVersion.NuGetVersion }}.7z ${{ env.Build.BinariesDirectory }}\Minori-${{ env.GitVersion.NuGetVersion }}
- uses: actions/upload-artifact@v2
with:
path: ${{ github.workspace }}
name: drop