Skip to content

Commit 69baaaf

Browse files
committed
add Url plugin publish step
1 parent cb758de commit 69baaaf

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
@@ -40,6 +40,8 @@ jobs:
4040
- 'Plugins/Flow.Launcher.Plugin.Shell/plugin.json'
4141
sys
4242
- 'Plugins/Flow.Launcher.Plugin.Sys/plugin.json'
43+
url
44+
- 'Plugins/Flow.Launcher.Plugin.Url/plugin.json'
4345
4446
- name: Get BrowserBookmark Version
4547
if: steps.changes.outputs.browserbookmark == 'true'
@@ -271,5 +273,31 @@ jobs:
271273
repository: "Flow-Launcher/Flow.Launcher.Plugin.Sys"
272274
files: "Flow.Launcher.Plugin.Sys.zip"
273275
tag_name: "v${{steps.updated-version-sys.outputs.prop}}"
276+
env:
277+
GITHUB_TOKEN: ${{ secrets.PUBLISH_PLUGINS }}
278+
279+
280+
- name: Get Url Version
281+
if: steps.changes.outputs.url == 'true'
282+
id: updated-version-url
283+
uses: notiz-dev/github-action-json-property@release
284+
with:
285+
path: 'Plugins/Flow.Launcher.Plugin.Url/plugin.json'
286+
prop_path: 'Version'
287+
288+
- name: Build Url
289+
if: steps.changes.outputs.url == 'true'
290+
run: |
291+
dotnet publish 'Plugins/Flow.Launcher.Plugin.Url/Flow.Launcher.Plugin.Url.csproj' --framework net7.0-windows -c Release -o "Flow.Launcher.Plugin.Url"
292+
7z a -tzip "Flow.Launcher.Plugin.Url.zip" "./Flow.Launcher.Plugin.Url/*"
293+
rm -r "Flow.Launcher.Plugin.Url"
294+
295+
- name: Publish Url
296+
if: steps.changes.outputs.url == 'true'
297+
uses: softprops/action-gh-release@v1
298+
with:
299+
repository: "Flow-Launcher/Flow.Launcher.Plugin.Url"
300+
files: "Flow.Launcher.Plugin.Url.zip"
301+
tag_name: "v${{steps.updated-version-url.outputs.prop}}"
274302
env:
275303
GITHUB_TOKEN: ${{ secrets.PUBLISH_PLUGINS }}

0 commit comments

Comments
 (0)