File tree Expand file tree Collapse file tree 1 file changed +29
-0
lines changed
Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Original file line number Diff line number Diff line change 1+ name : publish
2+
3+ on :
4+ release :
5+ types : published
6+
7+ jobs :
8+ publish :
9+ runs-on : ubuntu-latest
10+ steps :
11+ - uses : actions/checkout@v3
12+
13+ - name : Setup .NET
14+ uses : actions/setup-dotnet@v2
15+ with :
16+ dotnet-version : 8.0.x
17+
18+ - name : Get current release version
19+ id : version
20+ uses : pozetroninc/github-action-get-latest-release@master
21+ with :
22+ repository : Star-Academy/Summer1404-SE-Team03
23+
24+ - name : Build library and generate NuGet Package
25+ run : dotnet pack -c Release -o artifacts -p:PackageVersion=${{ steps.version.outputs.release }}
26+ working-directory : ./Phase03/
27+
28+ - name : Publish NuGet Package
29+ run : dotnet nuget push ./**/*.nupkg -k ${{ secrets.NUGET_API_KEY_NEW }} -s https://api.nuget.org/v3/index.json
You can’t perform that action at this time.
0 commit comments