Skip to content

Commit

Permalink
testing pushing to nuget
Browse files Browse the repository at this point in the history
  • Loading branch information
vinnie-fialok committed Jul 4, 2024
1 parent 4737280 commit 2b7df6a
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,9 @@ jobs:

- name: Pack Blazor.Diagrams
working-directory: src/Blazor.Diagrams
run: 'dotnet pack -p:GeneratePackageOnBuild=false --configuration Release -p:PackageVersion=${{ steps.version.outputs.version-without-v }} --output ${{ env.NUGET_DIR }}'

- name: Push
run: >-
for i in $(find ${{ env.NUGET_DIR }} -type f -name "*.nupkg");
do
echo "File: ${i} \n";
done
run: 'dotnet pack --no-restore --no-build -p:GeneratePackageOnBuild=false --configuration Release -p:PackageVersion=${{ steps.version.outputs.version-without-v }} --output ${{ env.NUGET_DIR }}'

- name: Push NuGet Package to NuGet Gallery
run: |
nuget setapikey ${{ secrets.NUGET_API_KEY }}
nuget push bin/WTG.Analyzers.${{ steps.version.outputs.version-without-v }}.nupkg -Source https://api.nuget.org/v3/index.json

0 comments on commit 2b7df6a

Please sign in to comment.