Skip to content

Commit bcdeea2

Browse files
committed
chore: configure master as prerelease branch
1 parent e5573c4 commit bcdeea2

File tree

3 files changed

+22
-26
lines changed

3 files changed

+22
-26
lines changed

.github/workflows/dotnet-release.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
name: .NET Release
22

3-
on: [workflow_dispatch]
3+
on:
4+
push:
5+
branches:
6+
- master
7+
- release
48

59
jobs:
610
test:

.github/workflows/github-pages.yml

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -3,25 +3,9 @@ name: Publish Documentation
33
on:
44
push:
55
branches: [master]
6-
tags: ['**']
76

87
jobs:
9-
build-changelog:
10-
runs-on: ubuntu-latest
11-
steps:
12-
- uses: actions/checkout@v2
13-
- name: Create Changelog
14-
uses: heinrichreimer/[email protected]
15-
with:
16-
token: ${{ secrets.GITHUB_TOKEN }}
17-
output: CHANGELOG.md
18-
- name: Upload changelog
19-
uses: actions/upload-artifact@v2
20-
with:
21-
name: changelog
22-
path: CHANGELOG.md
238
build-gh-pages:
24-
needs: build-changelog
259
runs-on: windows-latest
2610
steps:
2711
- uses: actions/checkout@v2
@@ -38,12 +22,6 @@ jobs:
3822
- name: Build Solution
3923
run: .\build.ps1 --target Compile --no-logo
4024
shell: powershell
41-
- name: Download docs artifact
42-
id: cl
43-
uses: actions/download-artifact@v2
44-
with:
45-
name: changelog
46-
path: docs
4725
- name: Build Documentation
4826
run: docfx docs/docfx.json
4927
- name: Upload docs artifact

.releaserc.json

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,16 @@
11
{
2-
"verifyConditions": ["@semantic-release/github"],
3-
"addChannel": ["@semantic-release/github"],
2+
"branches": [
3+
"release",
4+
{
5+
"name": "master",
6+
"prerelease": "prerelease"
7+
}
8+
],
9+
"plugins": [
10+
"@semantic-release/commit-analyzer",
11+
"@semantic-release/release-notes-generator",
12+
"@semantic-release/github"
13+
],
414
"prepare": [
515
[
616
"@semantic-release/exec",
@@ -13,7 +23,11 @@
1323
[
1424
"@semantic-release/github",
1525
{
16-
"assets": [{ "path": "artifacts/*.nupkg" }]
26+
"assets": [
27+
{
28+
"path": "artifacts/*.nupkg"
29+
}
30+
]
1731
}
1832
],
1933
[

0 commit comments

Comments
 (0)