File tree Expand file tree Collapse file tree 1 file changed +13
-15
lines changed Expand file tree Collapse file tree 1 file changed +13
-15
lines changed Original file line number Diff line number Diff line change 1- name : Publish Nuget Package
1+ name : Publish NuGet Package
2+
23on :
34 push :
45 branches :
56 - release/* # Default release branch
7+
68jobs :
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 Postgrest
30- run : dotnet build ./Postgrest/Postgrest.csproj --configuration Release --no-restore
28+ - name : Generate package
29+ run : dotnet pack ./Postgrest/Postgrest.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}}
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