Skip to content

Commit 63114c0

Browse files
authored
Update publish.yml
1 parent 44f8890 commit 63114c0

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

.github/workflows/publish.yml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,24 @@
11
name: Publish
22

33
on:
4-
push:
5-
branches: [ master ]
4+
pull_request:
5+
branches:
6+
- master
7+
types:
8+
- closed
9+
workflow_dispatch:
610

711
jobs:
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
@@ -26,7 +31,7 @@ jobs:
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

0 commit comments

Comments
 (0)