Skip to content

Commit 06c1494

Browse files
committed
ci: fix the error of release condition
1 parent a0fd35a commit 06c1494

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
dotnet nuget add source --username HelloWRC --password $env:GHPKG_KEY --store-password-in-clear-text --name github "https://nuget.pkg.github.com/ClassIsland/index.json"
2929
dotnet nuget push .\out\*.nupkg -k $env:GHPKG_KEY --source "github" --skip-duplicate
3030
- name: Upload Nuget packages to NuGet Gallery
31-
if: ${{ github.event.inputs.release_tag && github.event_name != 'pull_request' }}
31+
if: ${{ startsWith(github.ref, 'refs/tags/') && github.event_name != 'pull_request' }}
3232
env:
3333
NUGET_KEY: ${{ secrets.NUGET_ORG_KEY }}
3434
run: |

0 commit comments

Comments
 (0)