Skip to content

Commit 25b8fe7

Browse files
committed
2 parents d8df8a7 + 0c41c93 commit 25b8fe7

1 file changed

Lines changed: 2 additions & 12 deletions

File tree

.github/workflows/nuget.yml

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,28 @@
11
name: Publish NuGet Package
2-
32
on:
43
push:
54
tags:
65
- 'v*' # Trigger on version tags like v1.0.0
7-
86
jobs:
97
build:
108
runs-on: windows-latest
11-
129
steps:
1310
- name: Checkout code
14-
uses: actions/checkout@v3
15-
11+
uses: actions/checkout@v4
1612
- name: Setup .NET SDK
17-
uses: actions/setup-dotnet@v3
13+
uses: actions/setup-dotnet@v4
1814
with:
1915
dotnet-version: '6.0.x'
20-
2116
- name: Restore dependencies
2217
run: dotnet restore CADability/CADability.csproj
23-
2418
- name: Build
2519
run: dotnet build CADability/CADability.csproj -c Release --no-restore
26-
2720
- name: List build output
2821
run: dir CADability\bin\Release\netstandard2.0
29-
3022
- name: Pack
3123
run: dotnet pack CADability/CADability.csproj -c Release --no-build -o ./nupkgs
32-
3324
- name: List nupkg
3425
run: dir .\nupkgs
35-
3626
- name: Push NuGet package
3727
run: |
3828
$version = "${{ github.ref_name }}" -replace '^v', ''

0 commit comments

Comments
 (0)