Skip to content

Commit 8ee0bed

Browse files
authored
Add CI workflow (#2)
1 parent 2e52611 commit 8ee0bed

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/ci.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
tags: [ '*' ]
6+
7+
jobs:
8+
push:
9+
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- uses: actions/checkout@v3
14+
- name: Setup .NET
15+
uses: actions/setup-dotnet@v3
16+
with:
17+
dotnet-version: 6.0.x
18+
- name: Pack
19+
run: nuget pack -OutputDirectory ./dist -Version ${{ github.ref_name }}
20+
- name: Push
21+
run: nuget push dist/*.nupkg ${{ secrets.NUGET_API_KEY }} -Source https://api.nuget.org/v3/index.json

0 commit comments

Comments
 (0)