Skip to content

Commit da959a4

Browse files
committed
Update release workflow
1 parent ab48621 commit da959a4

File tree

1 file changed

+13
-16
lines changed

1 file changed

+13
-16
lines changed

.github/workflows/release.yml

Lines changed: 13 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,32 @@
1-
name: Publish Nuget Package
1+
name: Publish NuGet Package
2+
23
on:
34
push:
45
branches:
56
- release/* # Default release branch
7+
68
jobs:
79
publish:
810
name: build, pack & publish
911
runs-on: ubuntu-latest
1012
steps:
11-
- uses: actions/checkout@v2
13+
- uses: actions/checkout@v3
1214

13-
- name: Setup .NET Core
14-
uses: actions/setup-dotnet@v1
15+
- name: Setup .NET
16+
uses: actions/setup-dotnet@v3
1517
with:
16-
dotnet-version: '7.0.x'
18+
dotnet-version: 8.x
1719

1820
- name: Wait for tests to succeed
19-
uses: lewagon/wait-on-check-action@v1.0.0
21+
uses: lewagon/wait-on-check-action@v1.3.1
2022
with:
2123
ref: ${{ github.ref }}
22-
check-name: "buildAndTest"
24+
check-name: build-and-test
2325
repo-token: ${{ secrets.GITHUB_TOKEN }}
2426
wait-interval: 10
2527

26-
- name: Install dependencies
27-
run: dotnet restore
28-
29-
- name: Build Realtime
30-
run: dotnet build ./Functions/Functions.csproj --configuration Release --no-restore
28+
- name: Generate package
29+
run: dotnet pack ./Functions/Functions.csproj --configuration Release
3130

32-
# Publish
33-
- name: publish on version change
34-
run: nuget push "**/*.nupkg" -Source 'https://api.nuget.org/v3/index.json' -ApiKey ${{secrets.NUGET_API_KEY}}
35-
31+
- name: Publish on version change
32+
run: dotnet nuget push "**/*.nupkg" --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_API_KEY }}

0 commit comments

Comments
 (0)