Skip to content

Commit d1e7915

Browse files
committed
add Explorer plugin publish
1 parent be58cf0 commit d1e7915

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
@@ -26,6 +26,8 @@ jobs:
2626
- 'Plugins/Flow.Launcher.Plugin.BrowserBookmark/plugin.json'
2727
calculator:
2828
- 'Plugins/Flow.Launcher.Plugin.Calculator/plugin.json'
29+
explorer:
30+
- 'Plugins/Flow.Launcher.Plugin.Explorer/plugin.json'
2931
3032
- name: Get BrowserBookmark Version
3133
if: steps.changes.outputs.browserbookmark == 'true'
@@ -75,5 +77,31 @@ jobs:
7577
repository: "Flow-Launcher/Flow.Launcher.Plugin.Calculator"
7678
files: "Flow.Launcher.Plugin.Calculator.zip"
7779
tag_name: "v${{steps.updated-version-calculator.outputs.prop}}"
80+
env:
81+
GITHUB_TOKEN: ${{ secrets.PUBLISH_PLUGINS }}
82+
83+
84+
- name: Get Explorer Version
85+
if: steps.changes.outputs.explorer == 'true'
86+
id: updated-version-explorer
87+
uses: notiz-dev/github-action-json-property@release
88+
with:
89+
path: 'Plugins/Flow.Launcher.Plugin.Explorer/plugin.json'
90+
prop_path: 'Version'
91+
92+
- name: Build Explorer
93+
if: steps.changes.outputs.explorer == 'true'
94+
run: |
95+
dotnet publish 'Plugins/Flow.Launcher.Plugin.Explorer/Flow.Launcher.Plugin.Explorer.csproj' --framework net7.0-windows -c Release -o "Flow.Launcher.Plugin.Explorer"
96+
7z a -tzip "Flow.Launcher.Plugin.Explorer.zip" "./Flow.Launcher.Plugin.Explorer/*"
97+
rm -r "Flow.Launcher.Plugin.Explorer"
98+
99+
- name: Publish Explorer
100+
if: steps.changes.outputs.explorer == 'true'
101+
uses: softprops/action-gh-release@v1
102+
with:
103+
repository: "Flow-Launcher/Flow.Launcher.Plugin.Explorer"
104+
files: "Flow.Launcher.Plugin.Explorer.zip"
105+
tag_name: "v${{steps.updated-version-explorer.outputs.prop}}"
78106
env:
79107
GITHUB_TOKEN: ${{ secrets.PUBLISH_PLUGINS }}

0 commit comments

Comments
 (0)