Skip to content

Commit

Permalink
Update github_build_and_publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
avgalex authored Nov 25, 2024
1 parent c9073ff commit 39296ac
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions .github/workflows/github_build_and_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,6 @@ jobs:
UPLOAD_NUGET_API_KEY: ${{ secrets.UPLOAD_NUGET_API_KEY }}
run: |
chmod a+x ./build.sh
./build.sh --target=Travis --verbosity=normal --ForceUploadPackages=false
./build.sh --target=Travis --verbosity=normal --ForceUploadPackages=true
# Шаг 4: Публикация пакета на NuGet
- name: Publish to NuGet
if: success() # Публиковать только при успешной сборке
run: |
if ls ./bin/Release/*.nupkg 1> /dev/null 2>&1; then
dotnet nuget push ./bin/Release/*.nupkg \
-s https://api.nuget.org/v3/index.json \
-k ${{ secrets.UPLOAD_NUGET_API_KEY }}
else
echo "No .nupkg files found for publishing."
fi

0 comments on commit 39296ac

Please sign in to comment.