Skip to content

Commit 4b019a7

Browse files
committed
Initial commit
0 parents  commit 4b019a7

16 files changed

+797
-0
lines changed

.github/workflows/ci.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: CI
2+
on:
3+
push:
4+
branches: [ main ]
5+
pull_request:
6+
branches: [ main ]
7+
8+
jobs:
9+
build:
10+
11+
runs-on: ubuntu-latest
12+
permissions:
13+
contents: read
14+
15+
steps:
16+
- uses: actions/checkout@v4
17+
- name: Setup .NET
18+
uses: actions/setup-dotnet@v4
19+
with:
20+
dotnet-version: 8.0.*
21+
- name: Restore dependencies
22+
run: dotnet restore
23+
- name: Build
24+
run: dotnet build --no-restore -warnaserror
25+
- name: Test
26+
run: dotnet test --no-build --verbosity normal
27+
- name: Pack
28+
run: dotnet pack -c Release

.github/workflows/pack.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Pack
2+
on:
3+
push:
4+
branches: [ main ]
5+
jobs:
6+
pack:
7+
runs-on: ubuntu-latest
8+
permissions:
9+
contents: read
10+
11+
steps:
12+
- uses: actions/checkout@v4
13+
- name: Setup .NET
14+
uses: actions/setup-dotnet@v4
15+
with:
16+
dotnet-version: 8.0.*
17+
- name: Pack
18+
run: dotnet pack -c Release
19+
- name: Upload package
20+
uses: actions/upload-artifact@v4
21+
with:
22+
name: NuGet packages
23+
path: artifacts/package/release/*.nupkg

.github/workflows/publish.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
2+
name: publish
3+
on:
4+
push:
5+
branches: [ release ]
6+
release:
7+
types: [ published ]
8+
9+
jobs:
10+
pack:
11+
runs-on: ubuntu-latest
12+
permissions:
13+
contents: read
14+
15+
steps:
16+
- uses: actions/checkout@v4
17+
- name: Setup .NET
18+
uses: actions/setup-dotnet@v4
19+
with:
20+
dotnet-version: 8.0.*
21+
- name: Pack
22+
run: dotnet pack -c Release
23+
- name: Publish package
24+
run: dotnet nuget push --skip-duplicate -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json artifacts/package/release/*.nupkg

0 commit comments

Comments
 (0)