Skip to content

Commit be58cf0

Browse files
committed
add Calculator plugin publish step
1 parent 48fde00 commit be58cf0

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
@@ -24,6 +24,8 @@ jobs:
2424
filters: |
2525
browserbookmark:
2626
- 'Plugins/Flow.Launcher.Plugin.BrowserBookmark/plugin.json'
27+
calculator:
28+
- 'Plugins/Flow.Launcher.Plugin.Calculator/plugin.json'
2729
2830
- name: Get BrowserBookmark Version
2931
if: steps.changes.outputs.browserbookmark == 'true'
@@ -49,3 +51,29 @@ jobs:
4951
tag_name: "v${{steps.updated-version-browserbookmark.outputs.prop}}"
5052
env:
5153
GITHUB_TOKEN: ${{ secrets.PUBLISH_PLUGINS }}
54+
55+
56+
- name: Get Calculator Version
57+
if: steps.changes.outputs.calculator == 'true'
58+
id: updated-version-calculator
59+
uses: notiz-dev/github-action-json-property@release
60+
with:
61+
path: 'Plugins/Flow.Launcher.Plugin.Calculator/plugin.json'
62+
prop_path: 'Version'
63+
64+
- name: Build Calculator
65+
if: steps.changes.outputs.calculator == 'true'
66+
run: |
67+
dotnet publish 'Plugins/Flow.Launcher.Plugin.Calculator/Flow.Launcher.Plugin.Calculator.csproj' --framework net7.0-windows -c Release -o "Flow.Launcher.Plugin.Calculator"
68+
7z a -tzip "Flow.Launcher.Plugin.Calculator.zip" "./Flow.Launcher.Plugin.Calculator/*"
69+
rm -r "Flow.Launcher.Plugin.Calculator"
70+
71+
- name: Publish Calculator
72+
if: steps.changes.outputs.calculator == 'true'
73+
uses: softprops/action-gh-release@v1
74+
with:
75+
repository: "Flow-Launcher/Flow.Launcher.Plugin.Calculator"
76+
files: "Flow.Launcher.Plugin.Calculator.zip"
77+
tag_name: "v${{steps.updated-version-calculator.outputs.prop}}"
78+
env:
79+
GITHUB_TOKEN: ${{ secrets.PUBLISH_PLUGINS }}

0 commit comments

Comments
 (0)