File tree Expand file tree Collapse file tree 1 file changed +13
-16
lines changed Expand file tree Collapse file tree 1 file changed +13
-16
lines changed Original file line number Diff line number Diff line change 1
- name : Publish Nuget Package
1
+ name : Publish NuGet Package
2
+
2
3
on :
3
4
push :
4
5
branches :
5
6
- release/* # Default release branch
7
+
6
8
jobs :
7
9
publish :
8
10
name : build, pack & publish
9
11
runs-on : ubuntu-latest
10
12
steps :
11
- - uses : actions/checkout@v2
13
+ - uses : actions/checkout@v3
12
14
13
- - name : Setup .NET Core
14
- uses : actions/setup-dotnet@v1
15
+ - name : Setup .NET
16
+ uses : actions/setup-dotnet@v3
15
17
with :
16
- dotnet-version : ' 7.0.x '
18
+ dotnet-version : 8.x
17
19
18
20
- 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
20
22
with :
21
23
ref : ${{ github.ref }}
22
- check-name : " buildAndTest "
24
+ check-name : build-and-test
23
25
repo-token : ${{ secrets.GITHUB_TOKEN }}
24
26
wait-interval : 10
25
27
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
31
30
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 }}
You can’t perform that action at this time.
0 commit comments