Skip to content

Commit

Permalink
Feature/fix nuget push (#14)
Browse files Browse the repository at this point in the history
* Back to using nuget command - nuget 403 issues is with them

* Remove redundant command

* include readme

* Control which projects pack for nuget
  • Loading branch information
martinsmith1968 authored Aug 24, 2024
1 parent 96278a9 commit ee78423
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 7 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/ci-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,6 @@ jobs:

- name: Publish Benchmark output
run: |
ls -la -R
cat BenchmarkDotNet.Artifacts/results/*Benchmarks-report-github.md >> $GITHUB_STEP_SUMMARY
Expand Down Expand Up @@ -392,7 +391,4 @@ jobs:
path: ${{ env.NUGET_OUTPUT_FOLDER }}

- name: Publish
run: dotnet nuget push "**/*.nupkg" -k ${{ secrets.NUGET_API_KEY }} -s https://nuget.org
#
# - name: Publish
# run: nuget push "**/*.nupkg" -Source 'https://api.nuget.org/v3/index.json' -ApiKey
run: nuget push "**/*.nupkg" -Source 'https://api.nuget.org/v3/index.json'
7 changes: 6 additions & 1 deletion src/DNX.Extensions/DNX.Extensions.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<TargetFramework>netstandard2.0</TargetFramework>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<Nullable>disable</Nullable>
<IsPackable>true</IsPackable>
</PropertyGroup>

<PropertyGroup>
Expand All @@ -18,11 +19,15 @@
<PackageIcon>favicon-32x32.png</PackageIcon>
<PackageIconUrl>https://raw.githubusercontent.com/martinsmith1968/DNX.Extensions/main/images/favicon-32x32.png</PackageIconUrl>
<PackageReleaseNotes>
Interpolation to a working version and some preparation for moving to .NET Standard
Migration from DNX.Helpers
</PackageReleaseNotes>
</PropertyGroup>

<ItemGroup>
<None Include="../../README.md">
<Pack>True</Pack>
<PackagePath></PackagePath>
</None>
<None Include="../../LICENSE">
<Pack>True</Pack>
<PackagePath></PackagePath>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<IsPackable>false</IsPackable>
</PropertyGroup>

<ItemGroup>
Expand Down
1 change: 1 addition & 0 deletions tests/DNX.Extensions.Tests/DNX.Extensions.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>disable</Nullable>
<IsPackable>false</IsPackable>
</PropertyGroup>

<ItemGroup>
Expand Down

0 comments on commit ee78423

Please sign in to comment.