Skip to content

Commit a2fe597

Browse files
authored
feat: Add semantic-release and add semantic commit feature. (casbin#44)
* fix: add semantic commit title. * feat: add semantic release. * feat: add semantic-release badge. * feat: add code quality action.
1 parent 36252ae commit a2fe597

File tree

5 files changed

+50
-0
lines changed

5 files changed

+50
-0
lines changed

.github/semantic.yml

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Always validate the PR titles and the commits messages
2+
titleAndCommits: true

.github/workflows/release.yml

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- master
10+
11+
jobs:
12+
semantic-release:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v2
16+
17+
- name: Run semantic-release
18+
if: github.repository == 'divy9881/casbin-cpp' && github.event_name == 'push'
19+
run: |
20+
export PATH="$(yarn global bin):$PATH"
21+
yarn global add semantic-release
22+
semantic-release
23+
env:
24+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.releaserc.json

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"debug": true,
3+
"release": {
4+
"branches": [
5+
"master"
6+
]
7+
},
8+
"plugins": [
9+
"@semantic-release/commit-analyzer",
10+
"@semantic-release/release-notes-generator",
11+
"@semantic-release/github"
12+
]
13+
}

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ Casbin-CPP
22
====
33

44
[![Build Status](https://dev.azure.com/Casbin/casbin/_apis/build/status/casbin.casbin-cpp?branchName=master)](https://dev.azure.com/Casbin/casbin/_build?definitionId=2&branchName=master)
5+
[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)
56
[![Gitter](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/casbin/lobby)
67

78
**News**: Are you still worried about how to write the correct Casbin policy? ``Casbin online editor`` is coming to help! Try it at: http://casbin.org/editor/

lgtm.yml

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
path_classifiers:
2+
library:
3+
- casbin
4+
test:
5+
- test
6+
docs:
7+
- README.md
8+
- LICENSE.txt
9+
extraction:
10+
cpp:

0 commit comments

Comments
 (0)