Skip to content

Commit af29dad

Browse files
authored
Update publish.yml
1 parent 18fba43 commit af29dad

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/publish.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
name: Publish
22

3+
permissions:
4+
contents: write
5+
36
on:
47
pull_request:
58
branches:
@@ -14,13 +17,15 @@ jobs:
1417
runs-on: windows-latest
1518
steps:
1619
- uses: actions/checkout@v3
20+
with:
21+
submodules: true
1722

1823
- name: Setup .NET
1924
uses: actions/setup-dotnet@v3
2025
with:
2126
dotnet-version: 7.0.x
2227

23-
- name: get version
28+
- name: Get version
2429
id: version
2530
uses: notiz-dev/github-action-json-property@release
2631
with:
@@ -34,13 +39,14 @@ jobs:
3439

3540
- name: Build
3641
run: |
42+
cd Flow.Launcher.Plugin.OneNote
3743
dotnet publish -c Release -r win-x64 --no-self-contained Flow.Launcher.Plugin.OneNote.csproj
3844
7z a -tzip "Flow.Launcher.Plugin.OneNote.zip" "./bin/Release/win-x64/publish/*"
3945
4046
- name: Publish
4147
uses: softprops/action-gh-release@v1
4248
with:
43-
files: "Flow.Launcher.Plugin.OneNote.zip"
49+
files: "Flow.Launcher.Plugin.OneNote/Flow.Launcher.Plugin.OneNote.zip"
4450
tag_name: "v${{steps.version.outputs.prop}}"
4551
env:
4652
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)