Skip to content

Commit 7f97026

Browse files
committed
add ProcessKiller plugin publish step
1 parent 0c09643 commit 7f97026

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
@@ -32,6 +32,8 @@ jobs:
3232
- 'Plugins/Flow.Launcher.Plugin.PluginIndicator/plugin.json'
3333
pluginsmanager:
3434
- 'Plugins/Flow.Launcher.Plugin.PluginsManager/plugin.json'
35+
processkiller
36+
- 'Plugins/Flow.Launcher.Plugin.ProcessKiller/plugin.json'
3537
3638
- name: Get BrowserBookmark Version
3739
if: steps.changes.outputs.browserbookmark == 'true'
@@ -159,5 +161,31 @@ jobs:
159161
repository: "Flow-Launcher/Flow.Launcher.Plugin.PluginsManager"
160162
files: "Flow.Launcher.Plugin.PluginsManager.zip"
161163
tag_name: "v${{steps.updated-version-pluginsmanager.outputs.prop}}"
164+
env:
165+
GITHUB_TOKEN: ${{ secrets.PUBLISH_PLUGINS }}
166+
167+
168+
- name: Get ProcessKiller Version
169+
if: steps.changes.outputs.processkiller == 'true'
170+
id: updated-version-processkiller
171+
uses: notiz-dev/github-action-json-property@release
172+
with:
173+
path: 'Plugins/Flow.Launcher.Plugin.ProcessKiller/plugin.json'
174+
prop_path: 'Version'
175+
176+
- name: Build ProcessKiller
177+
if: steps.changes.outputs.processkiller == 'true'
178+
run: |
179+
dotnet publish 'Plugins/Flow.Launcher.Plugin.ProcessKiller/Flow.Launcher.Plugin.ProcessKiller.csproj' --framework net7.0-windows -c Release -o "Flow.Launcher.Plugin.ProcessKiller"
180+
7z a -tzip "Flow.Launcher.Plugin.ProcessKiller.zip" "./Flow.Launcher.Plugin.ProcessKiller/*"
181+
rm -r "Flow.Launcher.Plugin.ProcessKiller"
182+
183+
- name: Publish ProcessKiller
184+
if: steps.changes.outputs.processkiller == 'true'
185+
uses: softprops/action-gh-release@v1
186+
with:
187+
repository: "Flow-Launcher/Flow.Launcher.Plugin.ProcessKiller"
188+
files: "Flow.Launcher.Plugin.ProcessKiller.zip"
189+
tag_name: "v${{steps.updated-version-processkiller.outputs.prop}}"
162190
env:
163191
GITHUB_TOKEN: ${{ secrets.PUBLISH_PLUGINS }}

0 commit comments

Comments
 (0)