File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11name : Publish
22
33on :
4- push :
5- branches : [ master ]
4+ pull_request :
5+ branches :
6+ - master
7+ types :
8+ - closed
9+ workflow_dispatch :
610
711jobs :
812 build :
13+ if : ${{ github.event_name == 'workflow_dispatch' || github.event.pull_request.merged }}
914 runs-on : windows-latest
1015 steps :
11- - uses : actions/checkout@v2
16+ - uses : actions/checkout@v3
1217
1318 - name : Setup .NET
14- uses : actions/setup-dotnet@v1
19+ uses : actions/setup-dotnet@v3
1520 with :
16- dotnet-version : 6 .0.x
21+ dotnet-version : 7 .0.x
1722
1823 - name : get version
1924 id : version
2631
2732 - name : Build
2833 run : |
29- dotnet publish -c Release -r win-x64 Flow.Launcher.Plugin.OneNote.csproj
34+ dotnet publish -c Release -r win-x64 --no-self-contained Flow.Launcher.Plugin.OneNote.csproj
3035 7z a -tzip "Flow.Launcher.Plugin.OneNote.zip" "./bin/Release/win-x64/publish/*"
3136
3237 - name : Publish
You can’t perform that action at this time.
0 commit comments