Skip to content

Commit faa14b3

Browse files
Update dotnet-publish.yml
1 parent 431f44d commit faa14b3

1 file changed

Lines changed: 10 additions & 3 deletions

File tree

.github/workflows/dotnet-publish.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,23 @@ on:
44
push:
55
branches: [ main ]
66

7+
name: .NET Core - Build only
8+
9+
on:
10+
pull_request:
11+
branches: [ main ]
12+
713
jobs:
814
build:
915

1016
runs-on: ubuntu-latest
1117

1218
steps:
13-
- uses: actions/checkout@v2
19+
- uses: actions/checkout@v4
1420
- name: Setup .NET Core
1521
uses: actions/setup-dotnet@v1
1622
with:
17-
dotnet-version: 3.1.301
23+
dotnet-version: 8.0.x
1824
- name: Install dependencies
1925
run: dotnet restore
2026
- name: Build
@@ -23,12 +29,13 @@ jobs:
2329
run: dotnet test --no-restore --verbosity normal
2430
- name: Pack
2531
run: dotnet pack --include-symbols -p:SymbolPackageFormat=snupkg --no-build -c Release -o .
26-
- uses: actions/upload-artifact@v2
32+
- uses: actions/upload-artifact@v4
2733
with:
2834
name: nuget-packages
2935
path: |
3036
**/*.nupkg
3137
**/*.snupkg
38+
3239
- name: Publish
3340
env:
3441
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}

0 commit comments

Comments
 (0)