diff --git a/.github/workflows/default_plugins.yml b/.github/workflows/default_plugins.yml index f2f9e43d8..e4f1348df 100644 --- a/.github/workflows/default_plugins.yml +++ b/.github/workflows/default_plugins.yml @@ -36,6 +36,8 @@ jobs: - 'Plugins/Flow.Launcher.Plugin.ProcessKiller/plugin.json' program - 'Plugins/Flow.Launcher.Plugin.Program/plugin.json' + shell + - 'Plugins/Flow.Launcher.Plugin.Shell/plugin.json' - name: Get BrowserBookmark Version if: steps.changes.outputs.browserbookmark == 'true' @@ -215,5 +217,31 @@ jobs: repository: "Flow-Launcher/Flow.Launcher.Plugin.Program" files: "Flow.Launcher.Plugin.Program.zip" tag_name: "v${{steps.updated-version-program.outputs.prop}}" + env: + GITHUB_TOKEN: ${{ secrets.PUBLISH_PLUGINS }} + + + - name: Get Shell Version + if: steps.changes.outputs.shell == 'true' + id: updated-version-shell + uses: notiz-dev/github-action-json-property@release + with: + path: 'Plugins/Flow.Launcher.Plugin.Shell/plugin.json' + prop_path: 'Version' + + - name: Build Shell + if: steps.changes.outputs.shell == 'true' + run: | + dotnet publish 'Plugins/Flow.Launcher.Plugin.Shell/Flow.Launcher.Plugin.Shell.csproj' --framework net7.0-windows -c Release -o "Flow.Launcher.Plugin.Shell" + 7z a -tzip "Flow.Launcher.Plugin.Shell.zip" "./Flow.Launcher.Plugin.Shell/*" + rm -r "Flow.Launcher.Plugin.Shell" + + - name: Publish Shell + if: steps.changes.outputs.shell == 'true' + uses: softprops/action-gh-release@v1 + with: + 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 }} \ No newline at end of file