Skip to content

Commit

Permalink
Push to nuget via dotnet command
Browse files Browse the repository at this point in the history
  • Loading branch information
martinsmith1968 committed Aug 24, 2024
1 parent f146e97 commit 629dc6a
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 12 deletions.
32 changes: 20 additions & 12 deletions .github/workflows/ci-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,17 +88,6 @@ jobs:
echo "is_publish_candidate_branch=${is_publish_candidate_branch}" >> $GITHUB_ENV
echo "is_benchmark_candidate_branch=${is_benchmark_candidate_branch}" >> $GITHUB_ENV
- name: Set Package Suffix
run: |
package_suffix=''
if $is_primary_branch
then
package_suffix='-beta'
fi
echo "package_suffix=${package_suffix}" >> $GITHUB_ENV
- name: Determine Tagging
run: |
should_tag=false
Expand Down Expand Up @@ -168,6 +157,22 @@ jobs:
echo "should_publish=${should_publish}" >> $GITHUB_ENV
- name: Set Package Suffix
run: |
package_suffix=''
if !($is_primary_branch)
then
package_suffix='-beta'
if $should_release
then
package_suffix='-rc'
fi
fi
echo "package_suffix=${package_suffix}" >> $GITHUB_ENV
- name: Set Product Version
run: echo "product_version=${{ env.PKG_MAJOR_VERSION }}" >> $GITHUB_ENV

Expand Down Expand Up @@ -387,4 +392,7 @@ jobs:
path: ${{ env.NUGET_OUTPUT_FOLDER }}

- name: Publish
run: nuget push "**/*.nupkg" -Source 'https://api.nuget.org/v3/index.json'
run: dotnet nuget push nupkg\*.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
6 changes: 6 additions & 0 deletions To Do.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,13 @@

- https://learn.microsoft.com/en-us/answers/questions/1398343/nuget-how-can-i-make-a-single-nuget-package-target
- https://runs-on.com/github-actions/the-matrix-strategy/
- https://github.com/NuGet/setup-nuget

## Better Test Reporting ?

- https://github.com/marketplace/actions/dotnet-test-reporter

## NuGet signing

- https://timheuer.com/blog/use-nuget-with-github-actions-github-packages/
-

0 comments on commit 629dc6a

Please sign in to comment.