File tree Expand file tree Collapse file tree 1 file changed +11
-6
lines changed Expand file tree Collapse file tree 1 file changed +11
-6
lines changed Original file line number Diff line number Diff line change 1
1
name : Publish
2
2
3
3
on :
4
- push :
5
- branches : [ master ]
4
+ pull_request :
5
+ branches :
6
+ - master
7
+ types :
8
+ - closed
9
+ workflow_dispatch :
6
10
7
11
jobs :
8
12
build :
13
+ if : ${{ github.event_name == 'workflow_dispatch' || github.event.pull_request.merged }}
9
14
runs-on : windows-latest
10
15
steps :
11
- - uses : actions/checkout@v2
16
+ - uses : actions/checkout@v3
12
17
13
18
- name : Setup .NET
14
- uses : actions/setup-dotnet@v1
19
+ uses : actions/setup-dotnet@v3
15
20
with :
16
- dotnet-version : 6 .0.x
21
+ dotnet-version : 7 .0.x
17
22
18
23
- name : get version
19
24
id : version
26
31
27
32
- name : Build
28
33
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
30
35
7z a -tzip "Flow.Launcher.Plugin.OneNote.zip" "./bin/Release/win-x64/publish/*"
31
36
32
37
- name : Publish
You can’t perform that action at this time.
0 commit comments