Skip to content

Commit 6d420e4

Browse files
committed
add Shell plugin publish step
1 parent 116acc7 commit 6d420e4

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
@@ -36,6 +36,8 @@ jobs:
3636
- 'Plugins/Flow.Launcher.Plugin.ProcessKiller/plugin.json'
3737
program
3838
- 'Plugins/Flow.Launcher.Plugin.Program/plugin.json'
39+
shell
40+
- 'Plugins/Flow.Launcher.Plugin.Shell/plugin.json'
3941
4042
- name: Get BrowserBookmark Version
4143
if: steps.changes.outputs.browserbookmark == 'true'
@@ -215,5 +217,31 @@ jobs:
215217
repository: "Flow-Launcher/Flow.Launcher.Plugin.Program"
216218
files: "Flow.Launcher.Plugin.Program.zip"
217219
tag_name: "v${{steps.updated-version-program.outputs.prop}}"
220+
env:
221+
GITHUB_TOKEN: ${{ secrets.PUBLISH_PLUGINS }}
222+
223+
224+
- name: Get Shell Version
225+
if: steps.changes.outputs.shell == 'true'
226+
id: updated-version-shell
227+
uses: notiz-dev/github-action-json-property@release
228+
with:
229+
path: 'Plugins/Flow.Launcher.Plugin.Shell/plugin.json'
230+
prop_path: 'Version'
231+
232+
- name: Build Shell
233+
if: steps.changes.outputs.shell == 'true'
234+
run: |
235+
dotnet publish 'Plugins/Flow.Launcher.Plugin.Shell/Flow.Launcher.Plugin.Shell.csproj' --framework net7.0-windows -c Release -o "Flow.Launcher.Plugin.Shell"
236+
7z a -tzip "Flow.Launcher.Plugin.Shell.zip" "./Flow.Launcher.Plugin.Shell/*"
237+
rm -r "Flow.Launcher.Plugin.Shell"
238+
239+
- name: Publish Shell
240+
if: steps.changes.outputs.shell == 'true'
241+
uses: softprops/action-gh-release@v1
242+
with:
243+
repository: "Flow-Launcher/Flow.Launcher.Plugin.Shell"
244+
files: "Flow.Launcher.Plugin.Shell.zip"
245+
tag_name: "v${{steps.updated-version-shell.outputs.prop}}"
218246
env:
219247
GITHUB_TOKEN: ${{ secrets.PUBLISH_PLUGINS }}

0 commit comments

Comments
 (0)