Skip to content

Commit 62fa8de

Browse files
committed
add WindowsSettings plugin publish step
1 parent 6a050eb commit 62fa8de

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/default_plugins.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ jobs:
4444
- 'Plugins/Flow.Launcher.Plugin.Url/plugin.json'
4545
websearch
4646
- 'Plugins/Flow.Launcher.Plugin.WebSearch/plugin.json'
47+
windowssettings
48+
- 'Plugins/Flow.Launcher.Plugin.WindowsSettings/plugin.json'
4749
4850
- name: Get BrowserBookmark Version
4951
if: steps.changes.outputs.browserbookmark == 'true'
@@ -327,5 +329,31 @@ jobs:
327329
repository: "Flow-Launcher/Flow.Launcher.Plugin.WebSearch"
328330
files: "Flow.Launcher.Plugin.WebSearch.zip"
329331
tag_name: "v${{steps.updated-version-websearch.outputs.prop}}"
332+
env:
333+
GITHUB_TOKEN: ${{ secrets.PUBLISH_PLUGINS }}
334+
335+
336+
- name: Get WindowsSettings Version
337+
if: steps.changes.outputs.windowssettings == 'true'
338+
id: updated-version-windowssettings
339+
uses: notiz-dev/github-action-json-property@release
340+
with:
341+
path: 'Plugins/Flow.Launcher.Plugin.WindowsSettings/plugin.json'
342+
prop_path: 'Version'
343+
344+
- name: Build WindowsSettings
345+
if: steps.changes.outputs.windowssettings == 'true'
346+
run: |
347+
dotnet publish 'Plugins/Flow.Launcher.Plugin.WindowsSettings/Flow.Launcher.Plugin.WindowsSettings.csproj' --framework net7.0-windows -c Release -o "Flow.Launcher.Plugin.WindowsSettings"
348+
7z a -tzip "Flow.Launcher.Plugin.WindowsSettings.zip" "./Flow.Launcher.Plugin.WindowsSettings/*"
349+
rm -r "Flow.Launcher.Plugin.WindowsSettings"
350+
351+
- name: Publish WindowsSettings
352+
if: steps.changes.outputs.windowssettings == 'true'
353+
uses: softprops/action-gh-release@v1
354+
with:
355+
repository: "Flow-Launcher/Flow.Launcher.Plugin.WindowsSettings"
356+
files: "Flow.Launcher.Plugin.WindowsSettings.zip"
357+
tag_name: "v${{steps.updated-version-windowssettings.outputs.prop}}"
330358
env:
331359
GITHUB_TOKEN: ${{ secrets.PUBLISH_PLUGINS }}

0 commit comments

Comments
 (0)