File tree Expand file tree Collapse file tree 1 file changed +47
-0
lines changed Expand file tree Collapse file tree 1 file changed +47
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Publish Release
2+
3+ permissions :
4+ contents : write
5+
6+ on :
7+ push :
8+ branches : [ main ]
9+ paths :
10+ - ' plugin.json'
11+ workflow_dispatch :
12+
13+ jobs :
14+ publish :
15+
16+ runs-on : windows-latest
17+
18+ steps :
19+ - uses : actions/checkout@v3
20+
21+ - name : Setup .NET
22+ uses : actions/setup-dotnet@v3
23+ with :
24+ dotnet-version : 7.0.x
25+
26+ - name : get version
27+ id : version
28+ uses : notiz-dev/github-action-json-property@release
29+ with :
30+ path : ' plugin.json'
31+ prop_path : ' Version'
32+
33+ - run : echo ${{steps.version.outputs.prop}}
34+
35+ - name : Restore dependencies
36+ run : dotnet restore
37+
38+ - name : Build
39+ run : |
40+ dotnet publish -c Release -r win-x64 --no-self-contained Flow.Launcher.Plugin.AppUpgrader.csproj
41+ 7z a -tzip "Flow.Launcher.Plugin.AppUpgrader.zip" "./bin/Release/win-x64/publish/*"
42+
43+ - name : Publish
44+ uses : softprops/action-gh-release@v1
45+ with :
46+ files : " Flow.Launcher.Plugin.AppUpgrader.zip"
47+ tag_name : " v${{steps.version.outputs.prop}}"
You can’t perform that action at this time.
0 commit comments