Skip to content

Commit

Permalink
Merge pull request #1 from osbdr/feature/release-pipeline
Browse files Browse the repository at this point in the history
Add release pipeline
  • Loading branch information
j0nm1 authored Jun 26, 2020
2 parents 442f7e0 + 7c6f666 commit 700661c
Show file tree
Hide file tree
Showing 3 changed files with 130 additions and 1 deletion.
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

0 comments on commit 700661c

Please sign in to comment.