File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -37,10 +37,10 @@ jobs:
37
37
$NugetVersion = git describe --tags --abbrev=1 | sed 's/-/./'
38
38
dotnet pack -c Release --no-build -v minimal -o ${{ env.NuGetDirectory }} -p:PackageVersion=$NugetVersion
39
39
- name : Publish NuGet package
40
- if : ${{ success() }}
40
+ if : ${{ success() && github.repository == "progaudi/MsgPack.Light" }}
41
41
run : dotnet nuget push "${{ env.NuGetDirectory }}\*.nupkg" --api-key "${{ secrets.NUGET_PUSH }}" --source https://api.nuget.org/v3/index.json
42
42
- name : Upload files to a GitHub release
43
- if : ${{ success() && github.ref_type == 'tag' }}
43
+ if : ${{ success() && github.repository == "progaudi/MsgPack.Light" && github. ref_type == 'tag' }}
44
44
45
45
with :
46
46
file : ${{ env.NuGetDirectory }}\*.nupkg
You can’t perform that action at this time.
0 commit comments