Skip to content

Commit

Permalink
Update publish-nuget.yml
Browse files Browse the repository at this point in the history
Signed-off-by: Vitaly Kuzyaev <37330183+vitkuz573@users.noreply.github.com>
  • Loading branch information
vitkuz573 authored Apr 23, 2023
1 parent e78bc14 commit bc89d66
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/publish-nuget.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ env:
DOTNET_VERSION: '7.0.x'
VS_VERSION: '17.0'
NUGET_API_SOURCE: 'https://api.nuget.org/v3/index.json'
PUBLISH_TO_NUGET: ${{ secrets.PUBLISH_TO_NUGET }}

jobs:
build:
Expand Down Expand Up @@ -44,10 +45,6 @@ jobs:
dotnet build --configuration Release --no-restore /p:PackageVersion=${{ env.VERSION }} /p:PackageOutputPath="${{ env.GITHUB_WORKSPACE }}\nugets"
Write-Host "Built solution with version: ${{ env.VERSION }}"
- name: Set PUBLISH_TO_NUGET environment variable
id: set_publish_to_nuget
run: echo "PUBLISH_TO_NUGET=${{ secrets.PUBLISH_TO_NUGET }}" >> $GITHUB_ENV

- name: Find and publish nupkg file
if: ${{ env.PUBLISH_TO_NUGET == 'true' }}
shell: pwsh
Expand Down

0 comments on commit bc89d66

Please sign in to comment.