1
+ name : Publish Default Plugins
2
+
3
+ on :
4
+ push :
5
+ branches : ['master']
6
+ paths : ['Plugins/**']
7
+ workflow_dispatch :
8
+
9
+ jobs :
10
+ build :
11
+ runs-on : windows-latest
12
+
13
+ steps :
14
+ - uses : actions/checkout@v2
15
+ - name : Setup .NET
16
+ uses : actions/setup-dotnet@v1
17
+ with :
18
+ dotnet-version : 7.0.x
19
+
20
+ - name : Determine New Plugin Updates
21
+ uses : dorny/paths-filter@v2
22
+ id : changes
23
+ with :
24
+ filters : |
25
+ browserbookmark:
26
+ - 'Plugins/Flow.Launcher.Plugin.BrowserBookmark/plugin.json'
27
+ calculator:
28
+ - 'Plugins/Flow.Launcher.Plugin.Calculator/plugin.json'
29
+ explorer:
30
+ - 'Plugins/Flow.Launcher.Plugin.Explorer/plugin.json'
31
+ pluginindicator:
32
+ - 'Plugins/Flow.Launcher.Plugin.PluginIndicator/plugin.json'
33
+ pluginsmanager:
34
+ - 'Plugins/Flow.Launcher.Plugin.PluginsManager/plugin.json'
35
+ processkiller:
36
+ - 'Plugins/Flow.Launcher.Plugin.ProcessKiller/plugin.json'
37
+ program:
38
+ - 'Plugins/Flow.Launcher.Plugin.Program/plugin.json'
39
+ shell:
40
+ - 'Plugins/Flow.Launcher.Plugin.Shell/plugin.json'
41
+ sys:
42
+ - 'Plugins/Flow.Launcher.Plugin.Sys/plugin.json'
43
+ url:
44
+ - 'Plugins/Flow.Launcher.Plugin.Url/plugin.json'
45
+ websearch:
46
+ - 'Plugins/Flow.Launcher.Plugin.WebSearch/plugin.json'
47
+ windowssettings:
48
+ - 'Plugins/Flow.Launcher.Plugin.WindowsSettings/plugin.json'
49
+
50
+ - name : Get BrowserBookmark Version
51
+ if : steps.changes.outputs.browserbookmark == 'true'
52
+ id : updated-version-browserbookmark
53
+ uses : notiz-dev/github-action-json-property@release
54
+ with :
55
+ path : ' Plugins/Flow.Launcher.Plugin.BrowserBookmark/plugin.json'
56
+ prop_path : ' Version'
57
+
58
+ - name : Build BrowserBookmark
59
+ if : steps.changes.outputs.browserbookmark == 'true'
60
+ run : |
61
+ dotnet publish 'Plugins/Flow.Launcher.Plugin.BrowserBookmark/Flow.Launcher.Plugin.BrowserBookmark.csproj' --framework net7.0-windows -c Release -o "Flow.Launcher.Plugin.BrowserBookmark"
62
+ 7z a -tzip "Flow.Launcher.Plugin.BrowserBookmark.zip" "./Flow.Launcher.Plugin.BrowserBookmark/*"
63
+ rm -r "Flow.Launcher.Plugin.BrowserBookmark"
64
+
65
+ - name : Publish BrowserBookmark
66
+ if : steps.changes.outputs.browserbookmark == 'true'
67
+ uses : softprops/action-gh-release@v1
68
+ with :
69
+ repository : " Flow-Launcher/Flow.Launcher.Plugin.BrowserBookmark"
70
+ files : " Flow.Launcher.Plugin.BrowserBookmark.zip"
71
+ tag_name : " v${{steps.updated-version-browserbookmark.outputs.prop}}"
72
+ body : Visit Flow's [release notes](https://github.com/Flow-Launcher/Flow.Launcher/releases) for changes.
73
+ env :
74
+ GITHUB_TOKEN : ${{ secrets.PUBLISH_PLUGINS }}
75
+
76
+
77
+ - name : Get Calculator Version
78
+ if : steps.changes.outputs.calculator == 'true'
79
+ id : updated-version-calculator
80
+ uses : notiz-dev/github-action-json-property@release
81
+ with :
82
+ path : ' Plugins/Flow.Launcher.Plugin.Calculator/plugin.json'
83
+ prop_path : ' Version'
84
+
85
+ - name : Build Calculator
86
+ if : steps.changes.outputs.calculator == 'true'
87
+ run : |
88
+ dotnet publish 'Plugins/Flow.Launcher.Plugin.Calculator/Flow.Launcher.Plugin.Calculator.csproj' --framework net7.0-windows -c Release -o "Flow.Launcher.Plugin.Calculator"
89
+ 7z a -tzip "Flow.Launcher.Plugin.Calculator.zip" "./Flow.Launcher.Plugin.Calculator/*"
90
+ rm -r "Flow.Launcher.Plugin.Calculator"
91
+
92
+ - name : Publish Calculator
93
+ if : steps.changes.outputs.calculator == 'true'
94
+ uses : softprops/action-gh-release@v1
95
+ with :
96
+ repository : " Flow-Launcher/Flow.Launcher.Plugin.Calculator"
97
+ files : " Flow.Launcher.Plugin.Calculator.zip"
98
+ tag_name : " v${{steps.updated-version-calculator.outputs.prop}}"
99
+ body : Visit Flow's [release notes](https://github.com/Flow-Launcher/Flow.Launcher/releases) for changes.
100
+ env :
101
+ GITHUB_TOKEN : ${{ secrets.PUBLISH_PLUGINS }}
102
+
103
+
104
+ - name : Get Explorer Version
105
+ if : steps.changes.outputs.explorer == 'true'
106
+ id : updated-version-explorer
107
+ uses : notiz-dev/github-action-json-property@release
108
+ with :
109
+ path : ' Plugins/Flow.Launcher.Plugin.Explorer/plugin.json'
110
+ prop_path : ' Version'
111
+
112
+ - name : Build Explorer
113
+ if : steps.changes.outputs.explorer == 'true'
114
+ run : |
115
+ dotnet publish 'Plugins/Flow.Launcher.Plugin.Explorer/Flow.Launcher.Plugin.Explorer.csproj' --framework net7.0-windows -c Release -o "Flow.Launcher.Plugin.Explorer"
116
+ 7z a -tzip "Flow.Launcher.Plugin.Explorer.zip" "./Flow.Launcher.Plugin.Explorer/*"
117
+ rm -r "Flow.Launcher.Plugin.Explorer"
118
+
119
+ - name : Publish Explorer
120
+ if : steps.changes.outputs.explorer == 'true'
121
+ uses : softprops/action-gh-release@v1
122
+ with :
123
+ repository : " Flow-Launcher/Flow.Launcher.Plugin.Explorer"
124
+ files : " Flow.Launcher.Plugin.Explorer.zip"
125
+ tag_name : " v${{steps.updated-version-explorer.outputs.prop}}"
126
+ body : Visit Flow's [release notes](https://github.com/Flow-Launcher/Flow.Launcher/releases) for changes.
127
+ env :
128
+ GITHUB_TOKEN : ${{ secrets.PUBLISH_PLUGINS }}
129
+
130
+
131
+ - name : Get PluginIndicator Version
132
+ if : steps.changes.outputs.pluginindicator == 'true'
133
+ id : updated-version-pluginindicator
134
+ uses : notiz-dev/github-action-json-property@release
135
+ with :
136
+ path : ' Plugins/Flow.Launcher.Plugin.PluginIndicator/plugin.json'
137
+ prop_path : ' Version'
138
+
139
+ - name : Build PluginIndicator
140
+ if : steps.changes.outputs.pluginindicator == 'true'
141
+ run : |
142
+ dotnet publish 'Plugins/Flow.Launcher.Plugin.PluginIndicator/Flow.Launcher.Plugin.PluginIndicator.csproj' --framework net7.0-windows -c Release -o "Flow.Launcher.Plugin.PluginIndicator"
143
+ 7z a -tzip "Flow.Launcher.Plugin.PluginIndicator.zip" "./Flow.Launcher.Plugin.PluginIndicator/*"
144
+ rm -r "Flow.Launcher.Plugin.PluginIndicator"
145
+
146
+ - name : Publish PluginIndicator
147
+ if : steps.changes.outputs.pluginindicator == 'true'
148
+ uses : softprops/action-gh-release@v1
149
+ with :
150
+ repository : " Flow-Launcher/Flow.Launcher.Plugin.PluginIndicator"
151
+ files : " Flow.Launcher.Plugin.PluginIndicator.zip"
152
+ tag_name : " v${{steps.updated-version-pluginindicator.outputs.prop}}"
153
+ body : Visit Flow's [release notes](https://github.com/Flow-Launcher/Flow.Launcher/releases) for changes.
154
+ env :
155
+ GITHUB_TOKEN : ${{ secrets.PUBLISH_PLUGINS }}
156
+
157
+
158
+ - name : Get PluginsManager Version
159
+ if : steps.changes.outputs.pluginsmanager == 'true'
160
+ id : updated-version-pluginsmanager
161
+ uses : notiz-dev/github-action-json-property@release
162
+ with :
163
+ path : ' Plugins/Flow.Launcher.Plugin.PluginsManager/plugin.json'
164
+ prop_path : ' Version'
165
+
166
+ - name : Build PluginsManager
167
+ if : steps.changes.outputs.pluginsmanager == 'true'
168
+ run : |
169
+ dotnet publish 'Plugins/Flow.Launcher.Plugin.PluginsManager/Flow.Launcher.Plugin.PluginsManager.csproj' --framework net7.0-windows -c Release -o "Flow.Launcher.Plugin.PluginsManager"
170
+ 7z a -tzip "Flow.Launcher.Plugin.PluginsManager.zip" "./Flow.Launcher.Plugin.PluginsManager/*"
171
+ rm -r "Flow.Launcher.Plugin.PluginsManager"
172
+
173
+ - name : Publish PluginsManager
174
+ if : steps.changes.outputs.pluginsmanager == 'true'
175
+ uses : softprops/action-gh-release@v1
176
+ with :
177
+ repository : " Flow-Launcher/Flow.Launcher.Plugin.PluginsManager"
178
+ files : " Flow.Launcher.Plugin.PluginsManager.zip"
179
+ tag_name : " v${{steps.updated-version-pluginsmanager.outputs.prop}}"
180
+ body : Visit Flow's [release notes](https://github.com/Flow-Launcher/Flow.Launcher/releases) for changes.
181
+ env :
182
+ GITHUB_TOKEN : ${{ secrets.PUBLISH_PLUGINS }}
183
+
184
+
185
+ - name : Get ProcessKiller Version
186
+ if : steps.changes.outputs.processkiller == 'true'
187
+ id : updated-version-processkiller
188
+ uses : notiz-dev/github-action-json-property@release
189
+ with :
190
+ path : ' Plugins/Flow.Launcher.Plugin.ProcessKiller/plugin.json'
191
+ prop_path : ' Version'
192
+
193
+ - name : Build ProcessKiller
194
+ if : steps.changes.outputs.processkiller == 'true'
195
+ run : |
196
+ dotnet publish 'Plugins/Flow.Launcher.Plugin.ProcessKiller/Flow.Launcher.Plugin.ProcessKiller.csproj' --framework net7.0-windows -c Release -o "Flow.Launcher.Plugin.ProcessKiller"
197
+ 7z a -tzip "Flow.Launcher.Plugin.ProcessKiller.zip" "./Flow.Launcher.Plugin.ProcessKiller/*"
198
+ rm -r "Flow.Launcher.Plugin.ProcessKiller"
199
+
200
+ - name : Publish ProcessKiller
201
+ if : steps.changes.outputs.processkiller == 'true'
202
+ uses : softprops/action-gh-release@v1
203
+ with :
204
+ repository : " Flow-Launcher/Flow.Launcher.Plugin.ProcessKiller"
205
+ files : " Flow.Launcher.Plugin.ProcessKiller.zip"
206
+ tag_name : " v${{steps.updated-version-processkiller.outputs.prop}}"
207
+ body : Visit Flow's [release notes](https://github.com/Flow-Launcher/Flow.Launcher/releases) for changes.
208
+ env :
209
+ GITHUB_TOKEN : ${{ secrets.PUBLISH_PLUGINS }}
210
+
211
+
212
+ - name : Get Program Version
213
+ if : steps.changes.outputs.program == 'true'
214
+ id : updated-version-program
215
+ uses : notiz-dev/github-action-json-property@release
216
+ with :
217
+ path : ' Plugins/Flow.Launcher.Plugin.Program/plugin.json'
218
+ prop_path : ' Version'
219
+
220
+ - name : Build Program
221
+ if : steps.changes.outputs.program == 'true'
222
+ run : |
223
+ dotnet publish 'Plugins/Flow.Launcher.Plugin.Program/Flow.Launcher.Plugin.Program.csproj' --framework net7.0-windows10.0.19041.0 -c Release -o "Flow.Launcher.Plugin.Program"
224
+ 7z a -tzip "Flow.Launcher.Plugin.Program.zip" "./Flow.Launcher.Plugin.Program/*"
225
+ rm -r "Flow.Launcher.Plugin.Program"
226
+
227
+ - name : Publish Program
228
+ if : steps.changes.outputs.program == 'true'
229
+ uses : softprops/action-gh-release@v1
230
+ with :
231
+ repository : " Flow-Launcher/Flow.Launcher.Plugin.Program"
232
+ files : " Flow.Launcher.Plugin.Program.zip"
233
+ tag_name : " v${{steps.updated-version-program.outputs.prop}}"
234
+ body : Visit Flow's [release notes](https://github.com/Flow-Launcher/Flow.Launcher/releases) for changes.
235
+ env :
236
+ GITHUB_TOKEN : ${{ secrets.PUBLISH_PLUGINS }}
237
+
238
+
239
+ - name : Get Shell Version
240
+ if : steps.changes.outputs.shell == 'true'
241
+ id : updated-version-shell
242
+ uses : notiz-dev/github-action-json-property@release
243
+ with :
244
+ path : ' Plugins/Flow.Launcher.Plugin.Shell/plugin.json'
245
+ prop_path : ' Version'
246
+
247
+ - name : Build Shell
248
+ if : steps.changes.outputs.shell == 'true'
249
+ run : |
250
+ dotnet publish 'Plugins/Flow.Launcher.Plugin.Shell/Flow.Launcher.Plugin.Shell.csproj' --framework net7.0-windows -c Release -o "Flow.Launcher.Plugin.Shell"
251
+ 7z a -tzip "Flow.Launcher.Plugin.Shell.zip" "./Flow.Launcher.Plugin.Shell/*"
252
+ rm -r "Flow.Launcher.Plugin.Shell"
253
+
254
+ - name : Publish Shell
255
+ if : steps.changes.outputs.shell == 'true'
256
+ uses : softprops/action-gh-release@v1
257
+ with :
258
+ repository : " Flow-Launcher/Flow.Launcher.Plugin.Shell"
259
+ files : " Flow.Launcher.Plugin.Shell.zip"
260
+ tag_name : " v${{steps.updated-version-shell.outputs.prop}}"
261
+ body : Visit Flow's [release notes](https://github.com/Flow-Launcher/Flow.Launcher/releases) for changes.
262
+ env :
263
+ GITHUB_TOKEN : ${{ secrets.PUBLISH_PLUGINS }}
264
+
265
+
266
+ - name : Get Sys Version
267
+ if : steps.changes.outputs.sys == 'true'
268
+ id : updated-version-sys
269
+ uses : notiz-dev/github-action-json-property@release
270
+ with :
271
+ path : ' Plugins/Flow.Launcher.Plugin.Sys/plugin.json'
272
+ prop_path : ' Version'
273
+
274
+ - name : Build Sys
275
+ if : steps.changes.outputs.sys == 'true'
276
+ run : |
277
+ dotnet publish 'Plugins/Flow.Launcher.Plugin.Sys/Flow.Launcher.Plugin.Sys.csproj' --framework net7.0-windows -c Release -o "Flow.Launcher.Plugin.Sys"
278
+ 7z a -tzip "Flow.Launcher.Plugin.Sys.zip" "./Flow.Launcher.Plugin.Sys/*"
279
+ rm -r "Flow.Launcher.Plugin.Sys"
280
+
281
+ - name : Publish Sys
282
+ if : steps.changes.outputs.sys == 'true'
283
+ uses : softprops/action-gh-release@v1
284
+ with :
285
+ repository : " Flow-Launcher/Flow.Launcher.Plugin.Sys"
286
+ files : " Flow.Launcher.Plugin.Sys.zip"
287
+ tag_name : " v${{steps.updated-version-sys.outputs.prop}}"
288
+ body : Visit Flow's [release notes](https://github.com/Flow-Launcher/Flow.Launcher/releases) for changes.
289
+ env :
290
+ GITHUB_TOKEN : ${{ secrets.PUBLISH_PLUGINS }}
291
+
292
+
293
+ - name : Get Url Version
294
+ if : steps.changes.outputs.url == 'true'
295
+ id : updated-version-url
296
+ uses : notiz-dev/github-action-json-property@release
297
+ with :
298
+ path : ' Plugins/Flow.Launcher.Plugin.Url/plugin.json'
299
+ prop_path : ' Version'
300
+
301
+ - name : Build Url
302
+ if : steps.changes.outputs.url == 'true'
303
+ run : |
304
+ dotnet publish 'Plugins/Flow.Launcher.Plugin.Url/Flow.Launcher.Plugin.Url.csproj' --framework net7.0-windows -c Release -o "Flow.Launcher.Plugin.Url"
305
+ 7z a -tzip "Flow.Launcher.Plugin.Url.zip" "./Flow.Launcher.Plugin.Url/*"
306
+ rm -r "Flow.Launcher.Plugin.Url"
307
+
308
+ - name : Publish Url
309
+ if : steps.changes.outputs.url == 'true'
310
+ uses : softprops/action-gh-release@v1
311
+ with :
312
+ repository : " Flow-Launcher/Flow.Launcher.Plugin.Url"
313
+ files : " Flow.Launcher.Plugin.Url.zip"
314
+ tag_name : " v${{steps.updated-version-url.outputs.prop}}"
315
+ body : Visit Flow's [release notes](https://github.com/Flow-Launcher/Flow.Launcher/releases) for changes.
316
+ env :
317
+ GITHUB_TOKEN : ${{ secrets.PUBLISH_PLUGINS }}
318
+
319
+
320
+ - name : Get WebSearch Version
321
+ if : steps.changes.outputs.websearch == 'true'
322
+ id : updated-version-websearch
323
+ uses : notiz-dev/github-action-json-property@release
324
+ with :
325
+ path : ' Plugins/Flow.Launcher.Plugin.WebSearch/plugin.json'
326
+ prop_path : ' Version'
327
+
328
+ - name : Build WebSearch
329
+ if : steps.changes.outputs.websearch == 'true'
330
+ run : |
331
+ dotnet publish 'Plugins/Flow.Launcher.Plugin.WebSearch/Flow.Launcher.Plugin.WebSearch.csproj' --framework net7.0-windows -c Release -o "Flow.Launcher.Plugin.WebSearch"
332
+ 7z a -tzip "Flow.Launcher.Plugin.WebSearch.zip" "./Flow.Launcher.Plugin.WebSearch/*"
333
+ rm -r "Flow.Launcher.Plugin.WebSearch"
334
+
335
+ - name : Publish WebSearch
336
+ if : steps.changes.outputs.websearch == 'true'
337
+ uses : softprops/action-gh-release@v1
338
+ with :
339
+ repository : " Flow-Launcher/Flow.Launcher.Plugin.WebSearch"
340
+ files : " Flow.Launcher.Plugin.WebSearch.zip"
341
+ tag_name : " v${{steps.updated-version-websearch.outputs.prop}}"
342
+ body : Visit Flow's [release notes](https://github.com/Flow-Launcher/Flow.Launcher/releases) for changes.
343
+ env :
344
+ GITHUB_TOKEN : ${{ secrets.PUBLISH_PLUGINS }}
345
+
346
+
347
+ - name : Get WindowsSettings Version
348
+ if : steps.changes.outputs.windowssettings == 'true'
349
+ id : updated-version-windowssettings
350
+ uses : notiz-dev/github-action-json-property@release
351
+ with :
352
+ path : ' Plugins/Flow.Launcher.Plugin.WindowsSettings/plugin.json'
353
+ prop_path : ' Version'
354
+
355
+ - name : Build WindowsSettings
356
+ if : steps.changes.outputs.windowssettings == 'true'
357
+ run : |
358
+ dotnet publish 'Plugins/Flow.Launcher.Plugin.WindowsSettings/Flow.Launcher.Plugin.WindowsSettings.csproj' --framework net7.0-windows -c Release -o "Flow.Launcher.Plugin.WindowsSettings"
359
+ 7z a -tzip "Flow.Launcher.Plugin.WindowsSettings.zip" "./Flow.Launcher.Plugin.WindowsSettings/*"
360
+ rm -r "Flow.Launcher.Plugin.WindowsSettings"
361
+
362
+ - name : Publish WindowsSettings
363
+ if : steps.changes.outputs.windowssettings == 'true'
364
+ uses : softprops/action-gh-release@v1
365
+ with :
366
+ repository : " Flow-Launcher/Flow.Launcher.Plugin.WindowsSettings"
367
+ files : " Flow.Launcher.Plugin.WindowsSettings.zip"
368
+ tag_name : " v${{steps.updated-version-windowssettings.outputs.prop}}"
369
+ body : Visit Flow's [release notes](https://github.com/Flow-Launcher/Flow.Launcher/releases) for changes.
370
+ env :
371
+ GITHUB_TOKEN : ${{ secrets.PUBLISH_PLUGINS }}
0 commit comments