File tree Expand file tree Collapse file tree 1 file changed +12
-9
lines changed Expand file tree Collapse file tree 1 file changed +12
-9
lines changed Original file line number Diff line number Diff line change 1
1
name : Prepare Release
2
2
3
3
on :
4
- release :
5
- types : [unpublished]
4
+ workflow_dispatch :
5
+ inputs :
6
+ milestone :
7
+ description : ' The milestone to generate a release for'
8
+ required : true
9
+ type : string
6
10
7
11
env :
8
12
solution : MaterialDesignToolkit.Full.sln
20
24
id : get-contribs
21
25
uses : Keboo/GitHubHelper@master
22
26
with :
23
- milestone : ' ${{ github.ref }}'
27
+ milestone : ' ${{ inputs.milestone }}'
24
28
repository : ' MaterialDesignInXamlToolkit'
25
29
repository-owner : ' MaterialDesignInXAML'
26
30
token : ${{ github.token }}
60
64
name : DemoApp
61
65
path : " MainDemo.Wpf/bin/${{ env.buildConfiguration }}"
62
66
63
- update_release :
67
+ create_release :
64
68
needs : [collect_contributors, build_artifacts]
65
69
runs-on : ubuntu-latest
66
70
name : Update Release
@@ -71,14 +75,13 @@ jobs:
71
75
with :
72
76
name : NuGets
73
77
path : nugets
74
-
78
+
75
79
- name : Download Demo App Artifacts
76
80
uses : actions/download-artifact@v3
77
81
with :
78
82
name : DemoApp
79
83
path : demo-app
80
-
81
- - name : Add Artifacts to Release
84
+
85
+ - name : Create Release
82
86
run : |
83
- gh release upload "github.ref" nugets/*
84
- gh release upload "github.ref" demo-app/*
87
+ gh release create v${{ inputs.milestone }} --generate-notes '/nugets#NuGets' '/demo-app#Demo App'
You can’t perform that action at this time.
0 commit comments