File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -14,10 +14,14 @@ jobs:
1414 runs-on : ubuntu-latest
1515
1616 steps :
17- - name : Checkout code
18- uses : actions/checkout@v4
19- with :
20- fetch-depth : 0
17+ - name : Download release assets
18+ env :
19+ GH_TOKEN : ${{ github.token }}
20+ run : |
21+ gh release download "${{ github.event.release.tag_name }}" \
22+ --pattern "*.nupkg" \
23+ --dir ./artifacts \
24+ --repo "${{ github.repository }}"
2125
2226 - name : Setup .NET
2327 uses : actions/setup-dotnet@v4
2731 9.0.x
2832 10.0.x
2933
30- - name : Restore dependencies
31- run : dotnet restore
32-
33- - name : Build
34- run : dotnet build --configuration Release --no-restore
35-
36- - name : Test
37- run : dotnet test --configuration Release --no-build --verbosity normal
38-
39- - name : Pack NuGet packages
40- run : dotnet pack --configuration Release --no-build --output ./artifacts
41-
4234 - name : Verify packages
4335 run : |
4436 echo "Packages to be published:"
You can’t perform that action at this time.
0 commit comments