File tree Expand file tree Collapse file tree 1 file changed +32
-0
lines changed
Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Original file line number Diff line number Diff line change 1+ # This workflow will build a .NET project
2+ # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net
3+
4+ name : cloudscribe-navigation-develop-nuget-build
5+
6+ on :
7+ push :
8+ branches : [ "develop" ]
9+ # pull_request:
10+ # branches: [ "develop" ]
11+
12+ jobs :
13+ build :
14+
15+ runs-on : ubuntu-latest
16+
17+ steps :
18+ - uses : actions/checkout@v4
19+ - name : Setup .NET
20+ uses : actions/setup-dotnet@v4
21+ with :
22+ dotnet-version : 8.0.x
23+ - name : Setup NuGet
24+ run : dotnet nuget add source ${{ secrets.NUGET_SOURCE_URL }} -u ${{secrets.NUGET_USERNAME }} -p ${{ secrets.NUGET_PASSWORD }} --store-password-in-clear-text
25+ - name : Restore dependencies
26+ run : dotnet restore
27+ - name : Build
28+ run : dotnet build -c Release
29+ - name : Create NuGet package
30+ run : dotnet pack -c Release
31+ - name : Publish NuGet package
32+ run : dotnet nuget push **/*.nupkg --source ${{ secrets.NUGET_SOURCE_URL }}
You can’t perform that action at this time.
0 commit comments