File tree Expand file tree Collapse file tree 1 file changed +28
-28
lines changed
Expand file tree Collapse file tree 1 file changed +28
-28
lines changed Original file line number Diff line number Diff line change 1- # name: nuget
1+ name : nuget
22
3- # on:
4- # push:
5- # branches: [ main ]
3+ on :
4+ push :
5+ branches : [ main ]
66
7- # # Allows you to run this workflow manually from the Actions tab
8- # workflow_dispatch:
7+ # Allows you to run this workflow manually from the Actions tab
8+ workflow_dispatch :
99
10- # jobs:
11- # nuget-pack:
10+ jobs :
11+ nuget-pack :
1212
13- # runs-on: ubuntu-latest
13+ runs-on : ubuntu-latest
1414
15- # steps:
16- # - uses: actions/checkout@v3
17- # - name: Setup .NET
18- # uses: actions/setup-dotnet@v3
19- # with:
20- # dotnet-version: 7.0.x
15+ steps :
16+ - uses : actions/checkout@v3
17+ - name : Setup .NET
18+ uses : actions/setup-dotnet@v3
19+ with :
20+ dotnet-version : 7.0.x
2121
22- # - name: Restore dependencies
23- # run: dotnet restore
24- # - name: Build
25- # run: dotnet build --configuration Release
26- # - name: Pack
27- # run: dotnet pack -p:IncludeSymbols=true -p:SymbolPackageFormat=snupkg --configuration Release
22+ - name : Restore dependencies
23+ run : dotnet restore
24+ - name : Build
25+ run : dotnet build --configuration Release
26+ - name : Pack
27+ run : dotnet pack -p:IncludeSymbols=true -p:SymbolPackageFormat=snupkg --configuration Release
2828
29- # - name: publish nuget packages
30- # run: |
31- # shopt -s globstar
32- # for file in **/*.nupkg
33- # do
34- # dotnet nuget push "$file" --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate --no-symbols
35- # done
29+ - name : publish nuget packages
30+ run : |
31+ shopt -s globstar
32+ for file in **/*.nupkg
33+ do
34+ dotnet nuget push "$file" --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate --no-symbols
35+ done
You can’t perform that action at this time.
0 commit comments