Skip to content

Commit 6a050eb

Browse files
committed
add WebSearch plugin publish step
1 parent 69baaaf commit 6a050eb

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
@@ -42,6 +42,8 @@ jobs:
4242
- 'Plugins/Flow.Launcher.Plugin.Sys/plugin.json'
4343
url
4444
- 'Plugins/Flow.Launcher.Plugin.Url/plugin.json'
45+
websearch
46+
- 'Plugins/Flow.Launcher.Plugin.WebSearch/plugin.json'
4547
4648
- name: Get BrowserBookmark Version
4749
if: steps.changes.outputs.browserbookmark == 'true'
@@ -299,5 +301,31 @@ jobs:
299301
repository: "Flow-Launcher/Flow.Launcher.Plugin.Url"
300302
files: "Flow.Launcher.Plugin.Url.zip"
301303
tag_name: "v${{steps.updated-version-url.outputs.prop}}"
304+
env:
305+
GITHUB_TOKEN: ${{ secrets.PUBLISH_PLUGINS }}
306+
307+
308+
- name: Get WebSearch Version
309+
if: steps.changes.outputs.websearch == 'true'
310+
id: updated-version-websearch
311+
uses: notiz-dev/github-action-json-property@release
312+
with:
313+
path: 'Plugins/Flow.Launcher.Plugin.WebSearch/plugin.json'
314+
prop_path: 'Version'
315+
316+
- name: Build WebSearch
317+
if: steps.changes.outputs.websearch == 'true'
318+
run: |
319+
dotnet publish 'Plugins/Flow.Launcher.Plugin.WebSearch/Flow.Launcher.Plugin.WebSearch.csproj' --framework net7.0-windows -c Release -o "Flow.Launcher.Plugin.WebSearch"
320+
7z a -tzip "Flow.Launcher.Plugin.WebSearch.zip" "./Flow.Launcher.Plugin.WebSearch/*"
321+
rm -r "Flow.Launcher.Plugin.WebSearch"
322+
323+
- name: Publish WebSearch
324+
if: steps.changes.outputs.websearch == 'true'
325+
uses: softprops/action-gh-release@v1
326+
with:
327+
repository: "Flow-Launcher/Flow.Launcher.Plugin.WebSearch"
328+
files: "Flow.Launcher.Plugin.WebSearch.zip"
329+
tag_name: "v${{steps.updated-version-websearch.outputs.prop}}"
302330
env:
303331
GITHUB_TOKEN: ${{ secrets.PUBLISH_PLUGINS }}

0 commit comments

Comments
 (0)