Skip to content

Commit 0c32c60

Browse files
authored
Update PublishNuget.yml
1 parent 1d4902a commit 0c32c60

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

.github/workflows/PublishNuget.yml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,11 @@ jobs:
1515
# Steps represent a sequence of tasks that will be executed as part of the job
1616
steps:
1717
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
18-
- uses: actions/checkout@v2
18+
- uses: actions/checkout@v3
1919

20-
- name: Publish NuGet
21-
uses: brandedoutcast/[email protected]
22-
with:
23-
# Filepath of the project to be packaged, relative to root of repository
24-
PROJECT_FILE_PATH: src/DwC-A_dotnet.Interactive/DwC-A_dotnet.Interactive.csproj
25-
# NuGet package id, used for version detection & defaults to project name
26-
# API key to authenticate with NuGet server
27-
NUGET_KEY: ${{ secrets.NUGET_API_KEY }}
20+
- name: Build
21+
run: dotnet build -c Release src/DwC-A_dotnet.Interactive/DwC-A_dotnet.Interactive.csproj
22+
- name: Package
23+
run: dotnet pack -c Release -o . src/DwC-A_dotnet.Interactive/DwC-A_dotnet.Interactive.csproj
24+
- name: Publish
25+
run: dotnet nuget push *.nupkg -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json

0 commit comments

Comments
 (0)