Skip to content

Commit 095546b

Browse files
author
Christoph Bühler
committed
chore: add semantic releasing
1 parent 9c99089 commit 095546b

File tree

5 files changed

+84
-0
lines changed

5 files changed

+84
-0
lines changed
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: .NET Core Release
2+
3+
on:
4+
push:
5+
branches:
6+
- 'master'
7+
8+
jobs:
9+
test:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v2
13+
- name: Setup .NET Core
14+
uses: actions/setup-dotnet@v1
15+
with:
16+
dotnet-version: 3.1.101
17+
- name: Test
18+
run: ./build.sh --target test --no-logo
19+
semantic-release:
20+
runs-on: ubuntu-latest
21+
needs: test
22+
steps:
23+
- uses: actions/checkout@v2
24+
with:
25+
fetch-depth: 1
26+
- name: Setup .NET Core
27+
uses: actions/setup-dotnet@v1
28+
with:
29+
dotnet-version: 3.1.101
30+
- name: Semantic Release
31+
uses: cycjimmy/semantic-release-action@v2
32+
with:
33+
extra_plugins: |
34+
@semantic-release/exec
35+
env:
36+
NUGET_SERVER: ${{ secrets.NUGET_SERVER }}
37+
NUGET_KEY: ${{ secrets.NUGET_KEY }}
38+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/dotnet-test.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: .NET Core Testing
2+
3+
on:
4+
push:
5+
branches:
6+
- '*'
7+
- '!master'
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v2
14+
- name: Setup .NET Core
15+
uses: actions/setup-dotnet@v1
16+
with:
17+
dotnet-version: 3.1.101
18+
- name: Test
19+
run: ./build.sh --target test --no-logo

.releaserc.json

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"verifyConditions": ["@semantic-release/github"],
3+
"addChannel": ["@semantic-release/github"],
4+
"prepare": [
5+
[
6+
"@semantic-release/exec",
7+
{
8+
"prepareCmd": "./build.sh --no-logo --version ${nextRelease.version} --release-notes \"${nextRelease.notes}\" --target Pack"
9+
}
10+
]
11+
],
12+
"publish": [
13+
[
14+
"@semantic-release/github",
15+
{
16+
"assets": [{ "path": "artifacts/*.nupkg" }]
17+
}
18+
],
19+
[
20+
"@semantic-release/exec",
21+
{
22+
"publishCmd": "./build.sh --no-logo --target Publish"
23+
}
24+
]
25+
]
26+
}

build.sh

100644100755
File mode changed.

src/Dos/Dos.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
<Nullable>enable</Nullable>
77
<LangVersion>8</LangVersion>
88
<Authors>Christoph Bühler</Authors>
9+
<Company>smartive AG</Company>
910
</PropertyGroup>
1011

1112
<PropertyGroup>

0 commit comments

Comments
 (0)