Skip to content

Commit 360594a

Browse files
authored
Merge pull request #43 from dotnet-campus/t/walterlv/fix-ci
Fix CI
2 parents c24bcc5 + d66ac63 commit 360594a

File tree

3 files changed

+43
-22
lines changed

3 files changed

+43
-22
lines changed

.github/workflows/dotnet-build.yml

Lines changed: 0 additions & 16 deletions
This file was deleted.

.github/workflows/dotnet-core.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: .NET Core
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
8+
runs-on: windows-latest
9+
10+
steps:
11+
- uses: actions/checkout@v1
12+
- name: Setup .NET
13+
uses: actions/setup-dotnet@v1
14+
with:
15+
dotnet-version: |
16+
3.1.x
17+
6.0.x
18+
8.0.x
19+
20+
- name: Build
21+
run: dotnet build --configuration Release
22+
23+
- name: Test
24+
run: dotnet test --configuration Release
25+
26+
- name: Pack
27+
run: dotnet pack --configuration Release --no-build

.github/workflows/nuget-tag-publish.yml

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,26 +12,36 @@ jobs:
1212

1313
steps:
1414
- uses: actions/checkout@v1
15-
15+
16+
- name: Setup .NET
17+
uses: actions/setup-dotnet@v1
18+
with:
19+
dotnet-version: |
20+
3.1.x
21+
6.0.x
22+
8.0.x
23+
1624
- name: Install dotnet tool
1725
run: dotnet tool install -g dotnetCampus.TagToVersion
1826

19-
- name: Set tag to version
27+
- name: Set tag to version
2028
run: dotnet TagToVersion -t ${{ github.ref }}
2129

2230
- name: Build with dotnet
23-
run: dotnet build --configuration Release
31+
run: |
32+
dotnet build --configuration Release
33+
dotnet pack --configuration Release --no-build
2434
2535
- name: Install Nuget
2636
uses: nuget/setup-nuget@v1
2737
with:
28-
nuget-version: '5.x'
38+
nuget-version: '6.x'
2939

3040
- name: Add private GitHub registry to NuGet
3141
run: |
3242
nuget sources add -name github -Source https://nuget.pkg.github.com/dotnet-campus/index.json -Username dotnet-campus -Password ${{ secrets.GITHUB_TOKEN }}
3343
3444
- name: Push generated package to GitHub registry
3545
run: |
36-
nuget push .\bin\Release\*.nupkg -Source github -SkipDuplicate
37-
nuget push .\bin\Release\*.nupkg -Source https://api.nuget.org/v3/index.json -SkipDuplicate -ApiKey ${{ secrets.NugetKey }}
46+
nuget push .\artifacts\package\release\*.nupkg -Source github -SkipDuplicate
47+
nuget push .\artifacts\package\release\*.nupkg -Source https://api.nuget.org/v3/index.json -SkipDuplicate -ApiKey ${{ secrets.NugetKey }}

0 commit comments

Comments
 (0)