Skip to content

Commit

Permalink
Update nuget.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
SpringHgui authored Jul 14, 2024
1 parent ff8980e commit ccce417
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions .github/workflows/nuget.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,21 @@ jobs:
with:
dotnet-version: 8.0.*
include-prerelease: true
- name: Package
run: dotnet pack -c Release -o . src/OpenTask.Core/OpenTask.Core.csproj
- name: Publish
run: dotnet nuget push *.nupkg -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json

# Publish
- name: publish on version change
id: publish_nuget
uses: brandedoutcast/publish-nuget@v2
with:
# Filepath of the project to be packaged, relative to root of repository
PROJECT_FILE_PATH: src/OpenTask.Core/OpenTask.Core.csproj
VERSION_STATIC: ${{ github.ref }}
# - name: publish on version change
# id: publish_nuget
# uses: brandedoutcast/publish-nuget@v2
# with:
# # Filepath of the project to be packaged, relative to root of repository
# PROJECT_FILE_PATH: src/OpenTask.Core/OpenTask.Core.csproj
# VERSION_STATIC: ${{ github.ref }}

NUGET_KEY: ${{secrets.NUGET_API_KEY}}
# NUGET_KEY: ${{secrets.NUGET_API_KEY}}

# Configuration to build and package
# BUILD_CONFIGURATION: Release
Expand Down

0 comments on commit ccce417

Please sign in to comment.