1
+ name : Prepare Release
2
+
3
+ on :
4
+ release :
5
+ types : [unpublished]
6
+
7
+ env :
8
+ solution : MaterialDesignToolkit.Full.sln
9
+ buildConfiguration : ' Release'
10
+ mdixColorsVersion : ' 2.1.0'
11
+ mdixMahAppsVersion : ' 0.2.6'
12
+ mdixVersion : ' 4.7.0'
13
+
14
+ jobs :
15
+ collect_contributors :
16
+ runs-on : ubuntu-latest
17
+ name : Get a list of contributors
18
+ steps :
19
+ - name : Get Contributors
20
+ id : get-contribs
21
+ uses : Keboo/GitHubHelper@master
22
+ with :
23
+ milestone : ' ${{ github.ref }}'
24
+ repository : ' MaterialDesignInXamlToolkit'
25
+ repository-owner : ' MaterialDesignInXAML'
26
+ token : ${{ github.token }}
27
+
28
+ - name : Show Contributors
29
+ run : echo "${{ steps.get-contribs.outputs.contributors }}"
30
+
31
+ build_artifacts :
32
+ name : Build artifacts
33
+ runs-on : windows-latest
34
+ steps :
35
+ - uses : actions/checkout@v3
36
+ with :
37
+ fetch-depth : 0
38
+
39
+ - name : Build and Test
40
+ uses : ./.github/actions/build-and-test
41
+ timeout-minutes : 20
42
+ with :
43
+ solution : ${{ env.solution }}
44
+ buildConfiguration : ${{ env.buildConfiguration }}
45
+ nugetKey : ${{ secrets.PAT }}
46
+
47
+ - name : Build NuGets
48
+ shell : pwsh
49
+ run : .\Scripts\BuildNugets.ps1 -MDIXVersion ${{ inputs.mdixVersion }} -MDIXMahAppsVersion ${{ inputs.mdixMahAppsVersion }} -MDIXColorsVersion ${{ inputs.mdixColorsVersion }}
50
+
51
+ - name : Upload NuGets
52
+ uses : actions/upload-artifact@v2
53
+ with :
54
+ name : NuGets
55
+ path : " *.nupkg"
56
+
57
+ - name : Upload Demo App
58
+ uses : actions/upload-artifact@v2
59
+ with :
60
+ name : DemoApp
61
+ path : " MainDemo.Wpf/bin/${{ env.buildConfiguration }}"
62
+
63
+ update_release :
64
+ needs : [collect_contributors, build_artifacts]
65
+ runs-on : ubuntu-latest
66
+
67
+ - name : Download NuGet Artifacts
68
+ uses : actions/download-artifact@v3
69
+ with :
70
+ name : NuGets
71
+ path : nugets
72
+
73
+ - name : Download Demo App Artifacts
74
+ uses : actions/download-artifact@v3
75
+ with :
76
+ name : DemoApp
77
+ path : demo-app
78
+
79
+ - name : Add Artifacts to Release
80
+ run : |
81
+ gh release upload "github.ref" nugets/*
82
+ gh release upload "github.ref" demo-app/*
0 commit comments