Skip to content

Commit 29f5229

Browse files
authored
Merge pull request #3 from A-Programmer/develop
Merge
2 parents de04dc7 + f63aebc commit 29f5229

File tree

1 file changed

+5
-24
lines changed

1 file changed

+5
-24
lines changed

.github/workflows/publish-nuget.yml

Lines changed: 5 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ on:
44
push:
55
branches:
66
- main
7-
tags:
8-
- 'v*.*.*'
97

108
jobs:
119
publish:
@@ -15,36 +13,19 @@ jobs:
1513
- name: Checkout code
1614
uses: actions/checkout@v3
1715

18-
- name: Setup .NET SDKs
16+
- name: Setup .NET SDK
1917
uses: actions/setup-dotnet@v4
2018
with:
21-
dotnet-version: |
22-
8.0.x
23-
10.0.100-preview.4.25258.110
24-
25-
- name: Install GitVersion
26-
uses: gittools/actions/gitversion/[email protected]
27-
with:
28-
versionSpec: '5.12.0'
29-
30-
- name: Use GitVersion
31-
uses: gittools/actions/gitversion/[email protected]
32-
19+
dotnet-version: 8.0.x
20+
3321
- name: Restore dependencies
3422
run: dotnet restore
3523

3624
- name: Build
3725
run: dotnet build --configuration Release --no-restore
3826

3927
- name: Pack NuGet
40-
run: |
41-
dotnet pack --configuration Release \
42-
-p:PackageVersion=${{ steps.gitversion.outputs.NuGetVersionV2 }} \
43-
--no-build -o out
28+
run: dotnet pack --configuration Release --no-build -o out
4429

4530
- name: Push to NuGet
46-
if: success()
47-
run: |
48-
dotnet nuget push out/*.nupkg \
49-
--api-key ${{ secrets.NUGET_API_KEY }} \
50-
--source https://api.nuget.org/v3/index.json
31+
run: dotnet nuget push out/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json

0 commit comments

Comments
 (0)