File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Upload dotnet package
2+
3+ on :
4+ release :
5+ types : [created]
6+
7+ jobs :
8+ deploy :
9+
10+ runs-on : ubuntu-latest
11+ permissions :
12+ packages : write
13+ contents : read
14+
15+ steps :
16+ - uses : actions/checkout@v2
17+ - name : Setup .NET
18+ uses : actions/setup-dotnet@v1
19+ with :
20+ dotnet-version : ' 6.0.x' # SDK Version to use.
21+ - name : Build
22+ working-directory : ./src
23+ run : dotnet build --configuration Release .
24+ - name : Create the package
25+ working-directory : ./src
26+ run : dotnet pack --configuration Release .
27+ - name : Publish the package to nuget.org
28+ working-directory : ./src
29+ run : dotnet nuget push FileTypeInterrogator/bin/Release/FileTypeInterrogator.*.nupkg -k $NUGET_AUTH_TOKEN -s https://api.nuget.org/v3/index.json
30+ env :
31+ NUGET_AUTH_TOKEN : ${{secrets.NUGET_TOKEN}}
You can’t perform that action at this time.
0 commit comments