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