Skip to content

Commit 1bcca44

Browse files
authored
feat: Added semantic release (antonbabenko#296)
1 parent 00a5ef0 commit 1bcca44

File tree

5 files changed

+68
-128
lines changed

5 files changed

+68
-128
lines changed

.chglog/CHANGELOG.tpl.md

Lines changed: 0 additions & 111 deletions
This file was deleted.

.chglog/config.yml

Lines changed: 0 additions & 10 deletions
This file was deleted.

.github/workflows/release.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Release
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches:
7+
- main
8+
- master
9+
paths:
10+
- '**/*.py'
11+
- '**/*.sh'
12+
13+
jobs:
14+
release:
15+
name: Release
16+
runs-on: ubuntu-latest
17+
steps:
18+
- name: Checkout
19+
uses: actions/checkout@v2
20+
with:
21+
persist-credentials: false
22+
fetch-depth: 0
23+
24+
- name: Release
25+
uses: cycjimmy/semantic-release-action@v2
26+
with:
27+
semantic_version: 18.0.0
28+
extra_plugins: |
29+
@semantic-release/changelog@6.0.0
30+
@semantic-release/git@10.0.0
31+
env:
32+
GITHUB_TOKEN: ${{ secrets.SEMANTIC_RELEASE_TOKEN }}

.releaserc.json

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
"branches": [
3+
"main",
4+
"master"
5+
],
6+
"ci": false,
7+
"plugins": [
8+
"@semantic-release/commit-analyzer",
9+
"@semantic-release/release-notes-generator",
10+
[
11+
"@semantic-release/github",
12+
{
13+
"successComment":
14+
"This ${issue.pull_request ? 'PR is included' : 'issue has been resolved'} in version ${nextRelease.version} :tada:",
15+
"labels": false,
16+
"releasedLabels": false
17+
}
18+
],
19+
[
20+
"@semantic-release/changelog",
21+
{
22+
"changelogFile": "CHANGELOG.md",
23+
"changelogTitle": "# Changelog\n\nAll notable changes to this project will be documented in this file."
24+
}
25+
],
26+
[
27+
"@semantic-release/git",
28+
{
29+
"assets": [
30+
"CHANGELOG.md"
31+
],
32+
"message": "chore(release): version ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
33+
}
34+
]
35+
]
36+
}

Makefile

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)