From cb758de01a40fd6d9bf2f3a8d24db3a9fb66bc1b Mon Sep 17 00:00:00 2001 From: Jeremy Wu Date: Wed, 16 Aug 2023 21:28:42 +1000 Subject: [PATCH] Add Sys plugin publish step --- .github/workflows/default_plugins.yml | 28 +++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/.github/workflows/default_plugins.yml b/.github/workflows/default_plugins.yml index e4f1348df..0fcc8896d 100644 --- a/.github/workflows/default_plugins.yml +++ b/.github/workflows/default_plugins.yml @@ -38,6 +38,8 @@ jobs: - 'Plugins/Flow.Launcher.Plugin.Program/plugin.json' shell - 'Plugins/Flow.Launcher.Plugin.Shell/plugin.json' + sys + - 'Plugins/Flow.Launcher.Plugin.Sys/plugin.json' - name: Get BrowserBookmark Version if: steps.changes.outputs.browserbookmark == 'true' @@ -243,5 +245,31 @@ jobs: repository: "Flow-Launcher/Flow.Launcher.Plugin.Shell" files: "Flow.Launcher.Plugin.Shell.zip" tag_name: "v${{steps.updated-version-shell.outputs.prop}}" + env: + GITHUB_TOKEN: ${{ secrets.PUBLISH_PLUGINS }} + + + - name: Get Sys Version + if: steps.changes.outputs.sys == 'true' + id: updated-version-sys + uses: notiz-dev/github-action-json-property@release + with: + path: 'Plugins/Flow.Launcher.Plugin.Sys/plugin.json' + prop_path: 'Version' + + - name: Build Sys + if: steps.changes.outputs.sys == 'true' + run: | + dotnet publish 'Plugins/Flow.Launcher.Plugin.Sys/Flow.Launcher.Plugin.Sys.csproj' --framework net7.0-windows -c Release -o "Flow.Launcher.Plugin.Sys" + 7z a -tzip "Flow.Launcher.Plugin.Sys.zip" "./Flow.Launcher.Plugin.Sys/*" + rm -r "Flow.Launcher.Plugin.Sys" + + - name: Publish Sys + if: steps.changes.outputs.sys == 'true' + uses: softprops/action-gh-release@v1 + with: + repository: "Flow-Launcher/Flow.Launcher.Plugin.Sys" + files: "Flow.Launcher.Plugin.Sys.zip" + tag_name: "v${{steps.updated-version-sys.outputs.prop}}" env: GITHUB_TOKEN: ${{ secrets.PUBLISH_PLUGINS }} \ No newline at end of file