Skip to content

Commit 8a1ff53

Browse files
committed
nuget
1 parent 36386d3 commit 8a1ff53

File tree

1 file changed

+35
-35
lines changed

1 file changed

+35
-35
lines changed

.github/workflows/nuget.yml

Lines changed: 35 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,35 @@
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

0 commit comments

Comments
 (0)