File tree Expand file tree Collapse file tree 3 files changed +56
-25
lines changed Expand file tree Collapse file tree 3 files changed +56
-25
lines changed Original file line number Diff line number Diff line change
1
+ name : .NET Pre Release
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - main
7
+
8
+ jobs :
9
+ semantic-release :
10
+ runs-on : ubuntu-latest
11
+ steps :
12
+ - uses : actions/checkout@v3
13
+ with :
14
+ fetch-depth : 1
15
+
16
+ - name : Setup .NET
17
+ uses : actions/setup-dotnet@v3
18
+ with :
19
+ dotnet-version : 8.x
20
+
21
+ - name : Semantic Release
22
+ uses : cycjimmy/semantic-release-action@v3
23
+ with :
24
+ semantic_version : 21
25
+ extra_plugins : |
26
+ semantic-release-net
27
+ branches : |
28
+ [
29
+ {
30
+ "name": "main",
31
+ "prerelease": true
32
+ }
33
+ ]
34
+ env :
35
+ DEBUG : semantic-release:*
36
+ NUGET_API_KEY : ${{ secrets.NUGET_KEY }}
37
+ GH_NUGET_API_KEY : ${{ secrets.GITHUB_TOKEN }}
38
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 1
1
name : .NET Release
2
2
3
3
on :
4
- push :
5
- branches :
6
- - main
7
- - release
8
- - " maintenance/**"
4
+ workflow_dispatch :
9
5
10
6
jobs :
11
7
semantic-release :
23
19
- name : Semantic Release
24
20
uses : cycjimmy/semantic-release-action@v3
25
21
with :
26
- semantic_version : 19
22
+ semantic_version : 21
27
23
extra_plugins : |
28
24
semantic-release-net
25
+ branches : |
26
+ [
27
+ "main",
28
+ {
29
+ "name": "maintenance/7.x",
30
+ "range": "7.x"
31
+ },
32
+ {
33
+ "name": "maintenance/8.x",
34
+ "range": "8.x"
35
+ },
36
+ {
37
+ "name": "maintenance/9.x",
38
+ "range": "9.x"
39
+ }
40
+ ]
29
41
env :
30
42
DEBUG : semantic-release:*
31
43
NUGET_API_KEY : ${{ secrets.NUGET_KEY }}
Original file line number Diff line number Diff line change 1
1
{
2
2
"debug" : true ,
3
- "branches" : [
4
- {
5
- "name" : " maintenance/7.x" ,
6
- "range" : " 7.x"
7
- },
8
- {
9
- "name" : " maintenance/8.x" ,
10
- "range" : " 8.x"
11
- },
12
- {
13
- "name" : " maintenance/9.x" ,
14
- "range" : " 9.x"
15
- },
16
- {
17
- "name" : " main" ,
18
- "prerelease" : " pre"
19
- },
20
- " release"
21
- ],
22
3
"plugins" : [
23
4
" @semantic-release/commit-analyzer" ,
24
5
" @semantic-release/release-notes-generator" ,
You can’t perform that action at this time.
0 commit comments