File tree Expand file tree Collapse file tree 1 file changed +51
-0
lines changed Expand file tree Collapse file tree 1 file changed +51
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Publish Default Plugins
2
+
3
+ on :
4
+ push :
5
+ branches : ['master']
6
+ paths : ['Plugins/**']
7
+ workflow_dispatch :
8
+
9
+ jobs :
10
+ build :
11
+ runs-on : windows-latest
12
+
13
+ steps :
14
+ - uses : actions/checkout@v2
15
+ - name : Setup .NET
16
+ uses : actions/setup-dotnet@v1
17
+ with :
18
+ dotnet-version : 7.0.x
19
+
20
+ - name : Determine New Plugin Updates
21
+ uses : dorny/paths-filter@v2
22
+ id : changes
23
+ with :
24
+ filters : |
25
+ browserbookmark:
26
+ - 'Plugins/Flow.Launcher.Plugin.BrowserBookmark/plugin.json'
27
+
28
+ - name : Get BrowserBookmark Version
29
+ if : steps.changes.outputs.browserbookmark == 'true'
30
+ id : updated-version-browserbookmark
31
+ uses : notiz-dev/github-action-json-property@release
32
+ with :
33
+ path : ' Plugins/Flow.Launcher.Plugin.BrowserBookmark/plugin.json'
34
+ prop_path : ' Version'
35
+
36
+ - name : Build BrowserBookmark
37
+ if : steps.changes.outputs.browserbookmark == 'true'
38
+ run : |
39
+ dotnet publish 'Plugins/Flow.Launcher.Plugin.BrowserBookmark/Flow.Launcher.Plugin.BrowserBookmark.csproj' --framework net7.0-windows -c Release -o "Flow.Launcher.Plugin.BrowserBookmark"
40
+ 7z a -tzip "Flow.Launcher.Plugin.BrowserBookmark.zip" "./Flow.Launcher.Plugin.BrowserBookmark/*"
41
+ rm -r "Flow.Launcher.Plugin.BrowserBookmark"
42
+
43
+ - name : Publish BrowserBookmark
44
+ if : steps.changes.outputs.browserbookmark == 'true'
45
+ uses : softprops/action-gh-release@v1
46
+ with :
47
+ repository : " Flow-Launcher/Flow.Launcher.Plugin.BrowserBookmark"
48
+ files : " Flow.Launcher.Plugin.BrowserBookmark.zip"
49
+ tag_name : " v${{steps.updated-version-browserbookmark.outputs.prop}}"
50
+ env :
51
+ GITHUB_TOKEN : ${{ secrets.PUBLISH_PLUGINS }}
You can’t perform that action at this time.
0 commit comments