Skip to content

Commit a1e6d61

Browse files
committed
add PluginIndicator plugin publish step
1 parent d1e7915 commit a1e6d61

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
@@ -28,6 +28,8 @@ jobs:
2828
- 'Plugins/Flow.Launcher.Plugin.Calculator/plugin.json'
2929
explorer:
3030
- 'Plugins/Flow.Launcher.Plugin.Explorer/plugin.json'
31+
pluginindicator:
32+
- 'Plugins/Flow.Launcher.Plugin.PluginIndicator/plugin.json'
3133
3234
- name: Get BrowserBookmark Version
3335
if: steps.changes.outputs.browserbookmark == 'true'
@@ -103,5 +105,31 @@ jobs:
103105
repository: "Flow-Launcher/Flow.Launcher.Plugin.Explorer"
104106
files: "Flow.Launcher.Plugin.Explorer.zip"
105107
tag_name: "v${{steps.updated-version-explorer.outputs.prop}}"
108+
env:
109+
GITHUB_TOKEN: ${{ secrets.PUBLISH_PLUGINS }}
110+
111+
112+
- name: Get PluginIndicator Version
113+
if: steps.changes.outputs.pluginindicator == 'true'
114+
id: updated-version-pluginindicator
115+
uses: notiz-dev/github-action-json-property@release
116+
with:
117+
path: 'Plugins/Flow.Launcher.Plugin.PluginIndicator/plugin.json'
118+
prop_path: 'Version'
119+
120+
- name: Build PluginIndicator
121+
if: steps.changes.outputs.pluginindicator == 'true'
122+
run: |
123+
dotnet publish 'Plugins/Flow.Launcher.Plugin.PluginIndicator/Flow.Launcher.Plugin.PluginIndicator.csproj' --framework net7.0-windows -c Release -o "Flow.Launcher.Plugin.PluginIndicator"
124+
7z a -tzip "Flow.Launcher.Plugin.PluginIndicator.zip" "./Flow.Launcher.Plugin.PluginIndicator/*"
125+
rm -r "Flow.Launcher.Plugin.PluginIndicator"
126+
127+
- name: Publish PluginIndicator
128+
if: steps.changes.outputs.pluginindicator == 'true'
129+
uses: softprops/action-gh-release@v1
130+
with:
131+
repository: "Flow-Launcher/Flow.Launcher.Plugin.PluginIndicator"
132+
files: "Flow.Launcher.Plugin.PluginIndicator.zip"
133+
tag_name: "v${{steps.updated-version-pluginindicator.outputs.prop}}"
106134
env:
107135
GITHUB_TOKEN: ${{ secrets.PUBLISH_PLUGINS }}

0 commit comments

Comments
 (0)