Skip to content

Commit e27d5c6

Browse files
authored
Create publish.yml
1 parent bceec33 commit e27d5c6

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.github/workflows/publish.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: publish to nuget
2+
on:
3+
release:
4+
types: [published]
5+
jobs:
6+
build:
7+
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- uses: actions/checkout@v2
12+
- name: Setup .NET Core
13+
uses: actions/setup-dotnet@v1
14+
with:
15+
dotnet-version: 3.1.101
16+
- name: Build with dotnet
17+
run: dotnet build --configuration Release
18+
- name: Test with dotnet
19+
run: dotnet test
20+
- name: Pack with dotnet
21+
run: dotnet pack ZipContent.S3/ZipContent.S3.csproj --configuration Release
22+
- name: Push with dotnet
23+
run: dotnet nuget push **/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json --no-symbols 1

0 commit comments

Comments
 (0)