Skip to content

Commit 0d7439c

Browse files
committed
ci: push nugets only from my repository
Signed-off-by: Anatoly Popov <[email protected]>
1 parent b0470e1 commit 0d7439c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,10 @@ jobs:
3737
$NugetVersion = git describe --tags --abbrev=1 | sed 's/-/./'
3838
dotnet pack -c Release --no-build -v minimal -o ${{ env.NuGetDirectory }} -p:PackageVersion=$NugetVersion
3939
- name: Publish NuGet package
40-
if: ${{ success() }}
40+
if: ${{ success() && github.repository == "progaudi/MsgPack.Light" }}
4141
run: dotnet nuget push "${{ env.NuGetDirectory }}\*.nupkg" --api-key "${{ secrets.NUGET_PUSH }}" --source https://api.nuget.org/v3/index.json
4242
- 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' }}
4444
uses: svenstaro/[email protected]
4545
with:
4646
file: ${{ env.NuGetDirectory }}\*.nupkg

0 commit comments

Comments
 (0)