Skip to content
This repository was archived by the owner on Apr 3, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Release Pipeline

on:
push:
branches:
- develop
- master

jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 12.16.3

- name: prepare
run: npm install @semantic-release/gitlab @semantic-release/exec conventional-changelog-conventionalcommits

- name: release
run: npx semantic-release
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
105 changes: 105 additions & 0 deletions .releaserc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
{
"plugins":[
[
"@semantic-release/commit-analyzer",
{
"releaseRules":[
{
"type":"refactor",
"release":"patch"
},
{
"type":"docs",
"release":"patch"
},
{
"type":"test",
"release":"patch"
},
{
"type":"style",
"release":"patch"
},
{
"type":"perf",
"release":"patch"
},
{
"type":"ci",
"release":"patch"
},
{
"type":"build",
"release":"patch"
}
]
}
],
[
"@semantic-release/release-notes-generator",
{
"preset":"conventionalcommits",
"presetConfig":{
"types":[
{
"type":"feat",
"section":"Features",
"hidden":false
},
{
"type":"fix",
"section":"Fixes",
"hidden":false
},
{
"type":"docs",
"section":"Documentation",
"hidden":false
},
{
"type":"style",
"section":"Styling",
"hidden":false
},
{
"type":"refactor",
"section":"Refactor",
"hidden":false
},
{
"type":"perf",
"section":"Performance",
"hidden":false
},
{
"type":"test",
"section":"Tests",
"hidden":false
},
{
"type":"ci",
"section":"CI",
"hidden":false
},
{
"type":"chore",
"section":"Chore",
"hidden":false
}
]
}
}
],
[
"@semantic-release/exec",
{
"verifyReleaseCmd":"echo ${nextRelease.version} > version"
}
],
"@semantic-release/github"
],
"branches":[
{"name": "master"},
{"name": "develop", "channel": "develop", "prerelease": "develop"}
]
}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# pipeline-django-demo
# pipeline-django-semver-demo

Beispiel einer Pipeline, die folgendes kann:
- Outdated Check
Expand Down