-
-
Notifications
You must be signed in to change notification settings - Fork 65
45 lines (41 loc) · 1.05 KB
/
dotnet-release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: .NET Release
on:
workflow_dispatch:
jobs:
semantic-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 1
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 8.x
- name: Semantic Release
uses: cycjimmy/semantic-release-action@v4
with:
semantic_version: 21
extra_plugins: |
semantic-release-net
branches: |
[
"main",
{
"name": "maintenance/7.x",
"range": "7.x"
},
{
"name": "maintenance/8.x",
"range": "8.x"
},
{
"name": "maintenance/9.x",
"range": "9.x"
}
]
env:
DEBUG: semantic-release:*
NUGET_API_KEY: ${{ secrets.NUGET_KEY }}
GH_NUGET_API_KEY: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}