Skip to content

Commit cb758de

Browse files
committed
Add Sys plugin publish step
1 parent 6d420e4 commit cb758de

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
@@ -38,6 +38,8 @@ jobs:
3838
- 'Plugins/Flow.Launcher.Plugin.Program/plugin.json'
3939
shell
4040
- 'Plugins/Flow.Launcher.Plugin.Shell/plugin.json'
41+
sys
42+
- 'Plugins/Flow.Launcher.Plugin.Sys/plugin.json'
4143
4244
- name: Get BrowserBookmark Version
4345
if: steps.changes.outputs.browserbookmark == 'true'
@@ -243,5 +245,31 @@ jobs:
243245
repository: "Flow-Launcher/Flow.Launcher.Plugin.Shell"
244246
files: "Flow.Launcher.Plugin.Shell.zip"
245247
tag_name: "v${{steps.updated-version-shell.outputs.prop}}"
248+
env:
249+
GITHUB_TOKEN: ${{ secrets.PUBLISH_PLUGINS }}
250+
251+
252+
- name: Get Sys Version
253+
if: steps.changes.outputs.sys == 'true'
254+
id: updated-version-sys
255+
uses: notiz-dev/github-action-json-property@release
256+
with:
257+
path: 'Plugins/Flow.Launcher.Plugin.Sys/plugin.json'
258+
prop_path: 'Version'
259+
260+
- name: Build Sys
261+
if: steps.changes.outputs.sys == 'true'
262+
run: |
263+
dotnet publish 'Plugins/Flow.Launcher.Plugin.Sys/Flow.Launcher.Plugin.Sys.csproj' --framework net7.0-windows -c Release -o "Flow.Launcher.Plugin.Sys"
264+
7z a -tzip "Flow.Launcher.Plugin.Sys.zip" "./Flow.Launcher.Plugin.Sys/*"
265+
rm -r "Flow.Launcher.Plugin.Sys"
266+
267+
- name: Publish Sys
268+
if: steps.changes.outputs.sys == 'true'
269+
uses: softprops/action-gh-release@v1
270+
with:
271+
repository: "Flow-Launcher/Flow.Launcher.Plugin.Sys"
272+
files: "Flow.Launcher.Plugin.Sys.zip"
273+
tag_name: "v${{steps.updated-version-sys.outputs.prop}}"
246274
env:
247275
GITHUB_TOKEN: ${{ secrets.PUBLISH_PLUGINS }}

0 commit comments

Comments
 (0)