File tree Expand file tree Collapse file tree 2 files changed +49
-49
lines changed
Expand file tree Collapse file tree 2 files changed +49
-49
lines changed Load Diff This file was deleted.
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-ignore :
10+ - ' **/README.md'
11+
12+ jobs :
13+ publish :
14+
15+ runs-on : windows-latest
16+
17+ steps :
18+ - uses : actions/checkout@v3
19+
20+ - name : Setup .NET
21+ uses : actions/setup-dotnet@v3
22+ with :
23+ dotnet-version : 7.0.x
24+
25+ - name : get version
26+ id : version
27+ uses : notiz-dev/github-action-json-property@release
28+ with :
29+ path : ' src/plugin.json'
30+ prop_path : ' Version'
31+
32+ - run : echo ${{steps.version.outputs.prop}}
33+
34+ - name : Restore dependencies
35+ run : |
36+ cd src
37+ dotnet restore
38+
39+ - name : Build
40+ run : |
41+ cd src
42+ dotnet publish -c Release -r win-x64 --no-self-contained Flow.Launcher.Plugin.TogglTrack.csproj
43+ 7z a -tzip "Flow.Launcher.Plugin.TogglTrack.zip" "./bin/Release/win-x64/publish/*"
44+
45+ - name : Publish
46+ uses : softprops/action-gh-release@v1
47+ with :
48+ files : " src/Flow.Launcher.Plugin.TogglTrack.zip"
49+ tag_name : " v${{steps.version.outputs.prop}}"
You can’t perform that action at this time.
0 commit comments