Skip to content
This repository was archived by the owner on Apr 3, 2025. It is now read-only.

Commit 700661c

Browse files
authored
Merge pull request #1 from osbdr/feature/release-pipeline
Add release pipeline
2 parents 442f7e0 + 7c6f666 commit 700661c

File tree

3 files changed

+130
-1
lines changed

3 files changed

+130
-1
lines changed

.github/workflows/release.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Release Pipeline
2+
3+
on:
4+
push:
5+
branches:
6+
- develop
7+
- master
8+
9+
jobs:
10+
release:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v2
14+
- uses: actions/setup-node@v1
15+
with:
16+
node-version: 12.16.3
17+
18+
- name: prepare
19+
run: npm install @semantic-release/gitlab @semantic-release/exec conventional-changelog-conventionalcommits
20+
21+
- name: release
22+
run: npx semantic-release
23+
env:
24+
GH_TOKEN: ${{ secrets.GH_TOKEN }}

.releaserc.json

Lines changed: 105 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,105 @@
1+
{
2+
"plugins":[
3+
[
4+
"@semantic-release/commit-analyzer",
5+
{
6+
"releaseRules":[
7+
{
8+
"type":"refactor",
9+
"release":"patch"
10+
},
11+
{
12+
"type":"docs",
13+
"release":"patch"
14+
},
15+
{
16+
"type":"test",
17+
"release":"patch"
18+
},
19+
{
20+
"type":"style",
21+
"release":"patch"
22+
},
23+
{
24+
"type":"perf",
25+
"release":"patch"
26+
},
27+
{
28+
"type":"ci",
29+
"release":"patch"
30+
},
31+
{
32+
"type":"build",
33+
"release":"patch"
34+
}
35+
]
36+
}
37+
],
38+
[
39+
"@semantic-release/release-notes-generator",
40+
{
41+
"preset":"conventionalcommits",
42+
"presetConfig":{
43+
"types":[
44+
{
45+
"type":"feat",
46+
"section":"Features",
47+
"hidden":false
48+
},
49+
{
50+
"type":"fix",
51+
"section":"Fixes",
52+
"hidden":false
53+
},
54+
{
55+
"type":"docs",
56+
"section":"Documentation",
57+
"hidden":false
58+
},
59+
{
60+
"type":"style",
61+
"section":"Styling",
62+
"hidden":false
63+
},
64+
{
65+
"type":"refactor",
66+
"section":"Refactor",
67+
"hidden":false
68+
},
69+
{
70+
"type":"perf",
71+
"section":"Performance",
72+
"hidden":false
73+
},
74+
{
75+
"type":"test",
76+
"section":"Tests",
77+
"hidden":false
78+
},
79+
{
80+
"type":"ci",
81+
"section":"CI",
82+
"hidden":false
83+
},
84+
{
85+
"type":"chore",
86+
"section":"Chore",
87+
"hidden":false
88+
}
89+
]
90+
}
91+
}
92+
],
93+
[
94+
"@semantic-release/exec",
95+
{
96+
"verifyReleaseCmd":"echo ${nextRelease.version} > version"
97+
}
98+
],
99+
"@semantic-release/github"
100+
],
101+
"branches":[
102+
{"name": "master"},
103+
{"name": "develop", "channel": "develop", "prerelease": "develop"}
104+
]
105+
}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# pipeline-django-demo
1+
# pipeline-django-semver-demo
22

33
Beispiel einer Pipeline, die folgendes kann:
44
- Outdated Check

0 commit comments

Comments
 (0)