Skip to content

Commit 116acc7

Browse files
committed
add Program plugin publish step
1 parent 7f97026 commit 116acc7

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
@@ -34,6 +34,8 @@ jobs:
3434
- 'Plugins/Flow.Launcher.Plugin.PluginsManager/plugin.json'
3535
processkiller
3636
- 'Plugins/Flow.Launcher.Plugin.ProcessKiller/plugin.json'
37+
program
38+
- 'Plugins/Flow.Launcher.Plugin.Program/plugin.json'
3739
3840
- name: Get BrowserBookmark Version
3941
if: steps.changes.outputs.browserbookmark == 'true'
@@ -187,5 +189,31 @@ jobs:
187189
repository: "Flow-Launcher/Flow.Launcher.Plugin.ProcessKiller"
188190
files: "Flow.Launcher.Plugin.ProcessKiller.zip"
189191
tag_name: "v${{steps.updated-version-processkiller.outputs.prop}}"
192+
env:
193+
GITHUB_TOKEN: ${{ secrets.PUBLISH_PLUGINS }}
194+
195+
196+
- name: Get Program Version
197+
if: steps.changes.outputs.program == 'true'
198+
id: updated-version-program
199+
uses: notiz-dev/github-action-json-property@release
200+
with:
201+
path: 'Plugins/Flow.Launcher.Plugin.Program/plugin.json'
202+
prop_path: 'Version'
203+
204+
- name: Build Program
205+
if: steps.changes.outputs.program == 'true'
206+
run: |
207+
dotnet publish 'Plugins/Flow.Launcher.Plugin.Program/Flow.Launcher.Plugin.Program.csproj' --framework net7.0-windows -c Release -o "Flow.Launcher.Plugin.Program"
208+
7z a -tzip "Flow.Launcher.Plugin.Program.zip" "./Flow.Launcher.Plugin.Program/*"
209+
rm -r "Flow.Launcher.Plugin.Program"
210+
211+
- name: Publish Program
212+
if: steps.changes.outputs.program == 'true'
213+
uses: softprops/action-gh-release@v1
214+
with:
215+
repository: "Flow-Launcher/Flow.Launcher.Plugin.Program"
216+
files: "Flow.Launcher.Plugin.Program.zip"
217+
tag_name: "v${{steps.updated-version-program.outputs.prop}}"
190218
env:
191219
GITHUB_TOKEN: ${{ secrets.PUBLISH_PLUGINS }}

0 commit comments

Comments
 (0)