Skip to content

Commit da3df96

Browse files
committed
修复发布阶段的权限和依赖配置
1 parent def4a53 commit da3df96

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

.github/workflows/nuget-publish.yml

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -81,16 +81,6 @@ jobs:
8181

8282
publish:
8383
name: 调用发布阶段
84-
needs: [prepare, pack]
85-
uses: ./.github/workflows/publish-release.yml
86-
with:
87-
release_tag: ${{ needs.prepare.outputs.release_tag }}
88-
publish_nuget: ${{ startsWith(github.ref, 'refs/tags/') || github.event.inputs.publish_nuget == 'true' }}
89-
publish_github: ${{ startsWith(github.ref, 'refs/tags/') || github.event.inputs.publish_github == 'true' }}
90-
permissions:
91-
contents: write
92-
packages: write
93-
9484
if: |
9585
startsWith(github.ref, 'refs/tags/') ||
9686
(
@@ -100,3 +90,12 @@ jobs:
10090
github.event.inputs.publish_github == 'true'
10191
)
10292
)
93+
needs: [prepare, pack]
94+
uses: ./.github/workflows/publish-release.yml
95+
with:
96+
release_tag: ${{ needs.prepare.outputs.release_tag }}
97+
publish_nuget: ${{ startsWith(github.ref, 'refs/tags/') || github.event.inputs.publish_nuget == 'true' }}
98+
publish_github: ${{ startsWith(github.ref, 'refs/tags/') || github.event.inputs.publish_github == 'true' }}
99+
permissions:
100+
contents: write
101+
packages: write

0 commit comments

Comments
 (0)