Skip to content

Commit 9925453

Browse files
committed
🥇 Initial commit
0 parents  commit 9925453

16 files changed

Lines changed: 831 additions & 0 deletions

.github/dependabot.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: nuget
4+
directory: "src/OpenOnlineConfig"
5+
schedule:
6+
interval: daily
7+
open-pull-requests-limit: 16

.github/workflows/build.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Build & Test
2+
3+
on:
4+
push:
5+
branches:
6+
- '**'
7+
paths-ignore:
8+
- 'README.md'
9+
- 'LICENSE'
10+
pull_request:
11+
paths-ignore:
12+
- 'README.md'
13+
- 'LICENSE'
14+
15+
jobs:
16+
build:
17+
name: Build & Test
18+
runs-on: ubuntu-latest
19+
defaults:
20+
run:
21+
working-directory: src/OpenOnlineConfig
22+
23+
steps:
24+
- uses: actions/checkout@v2
25+
- name: Restore dependencies
26+
run: dotnet restore
27+
- name: Build
28+
run: dotnet build --no-restore
29+
- name: Test
30+
run: dotnet test --no-build --verbosity normal

.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 NuGet Package
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
7+
8+
jobs:
9+
publish_upload:
10+
name: Publish NuGet Package
11+
runs-on: ubuntu-latest
12+
defaults:
13+
run:
14+
working-directory: src/OpenOnlineConfig
15+
16+
steps:
17+
- uses: actions/checkout@v2
18+
- name: Restore dependencies
19+
run: dotnet restore
20+
- name: Pack and upload NuGet package
21+
run: |
22+
dotnet pack OpenOnlineConfig -c Release
23+
dotnet nuget push OpenOnlineConfig/bin/Release/*.nupkg -s https://api.nuget.org/v3/index.json -k ${{ secrets.NUGET_API_KEY }} --skip-duplicate

0 commit comments

Comments
 (0)