Skip to content

Commit b07e502

Browse files
committed
Update workflows
1 parent 7621462 commit b07e502

File tree

2 files changed

+12
-11
lines changed

2 files changed

+12
-11
lines changed

.github/workflows/build.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,13 @@ jobs:
1010
steps:
1111
- uses: actions/checkout@v1
1212

13-
- name: Build Project
14-
run: ./build.ps1
15-
shell: powershell
13+
- name: Setup .NET Core
14+
uses: actions/setup-dotnet@v1
15+
with:
16+
dotnet-version: 3.1.200
17+
18+
- name: Run the Cake script
19+
uses: ecampidoglio/cake-action@master
1620

1721
- uses: actions/upload-artifact@master
1822
with:

.github/workflows/release-nuget.yml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,21 +12,18 @@ jobs:
1212
- name: Setup .NET Core
1313
uses: actions/setup-dotnet@v1
1414
with:
15-
dotnet-version: '3.1.100'
16-
17-
- uses: actions/checkout@v1
15+
dotnet-version: 3.1.200
1816

19-
- name: Build Project
20-
run: ./build.ps1
21-
shell: powershell
17+
- name: Run the Cake script
18+
uses: ecampidoglio/cake-action@master
2219

2320
- uses: actions/upload-artifact@master
2421
with:
2522
name: NugetPackage
2623
path: artifacts
2724

2825
- name: Publish NuGet Package (NuGet.org)
29-
run: dotnet nuget push artifacts/**/*.nupkg -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json
26+
run: dotnet nuget push artifacts/**/*.nupkg -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json -n true
3027

3128
- name: Publish NuGet Package (GitHub)
32-
run: dotnet nuget push artifacts/**/*.nupkg -k ${{ secrets.GITHUB_TOKEN }} -s https://nuget.pkg.github.com/redth-org/index.json
29+
run: dotnet nuget push artifacts/**/*.nupkg -k ${{ secrets.GITHUB_TOKEN }} -s https://nuget.pkg.github.com/redth-org/index.json -n true

0 commit comments

Comments
 (0)