Skip to content

Commit 0ea19b5

Browse files
author
sangeet-joy_xero
committed
added dotnet version 8 in publish pipeline
1 parent 3c05804 commit 0ea19b5

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

.github/workflows/dotnet.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
name: .NET
22

3+
# on:
4+
# release:
5+
# types: [published]
36
on:
4-
release:
5-
types: [published]
7+
push:
68

79
jobs:
810
build:
@@ -14,12 +16,12 @@ jobs:
1416
- name: Setup .NET
1517
uses: actions/setup-dotnet@v1
1618
with:
17-
dotnet-version: 3.1.x
19+
dotnet-version: 8.0.x
1820
- name: Restore dependencies
1921
run: dotnet restore
2022
- name: Build
2123
run: dotnet build --no-restore
2224
- name: Create Package for Nuget.org\
2325
run: dotnet pack
24-
- name: Publish Package to Nuget.org
25-
run: dotnet nuget push ./Xero.NetStandard.OAuth2/bin/Debug/Xero.NetStandard.OAuth2.${{ github.event.release.name }}.nupkg --api-key ${{ secrets.NUGET_APIKEY }} --source https://api.nuget.org/v3/index.json
26+
# - name: Publish Package to Nuget.org
27+
# run: dotnet nuget push ./Xero.NetStandard.OAuth2/bin/Debug/Xero.NetStandard.OAuth2.${{ github.event.release.name }}.nupkg --api-key ${{ secrets.NUGET_APIKEY }} --source https://api.nuget.org/v3/index.json

0 commit comments

Comments
 (0)