File tree Expand file tree Collapse file tree 1 file changed +35
-35
lines changed
Expand file tree Collapse file tree 1 file changed +35
-35
lines changed Original file line number Diff line number Diff line change 1- name : nuget
2-
3- on :
4- push :
5- branches : [ main ]
6-
7- # Allows you to run this workflow manually from the Actions tab
8- workflow_dispatch :
9-
10- jobs :
11- nuget-pack :
12-
13- runs-on : ubuntu-latest
14-
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
21-
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
28-
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
1+ # name: nuget
2+ #
3+ # on:
4+ # push:
5+ # branches: [ main ]
6+ #
7+ # # Allows you to run this workflow manually from the Actions tab
8+ # workflow_dispatch:
9+ #
10+ # jobs:
11+ # nuget-pack:
12+ #
13+ # runs-on: ubuntu-latest
14+ #
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
21+ #
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
28+ #
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