Skip to content

Commit

Permalink
feat: Add semantic-release and add semantic commit feature. (#44)
Browse files Browse the repository at this point in the history
* fix: add semantic commit title.

* feat: add semantic release.

* feat: add semantic-release badge.

* feat: add code quality action.
  • Loading branch information
divy9881 authored Jun 23, 2020
1 parent 36252ae commit a2fe597
Show file tree
Hide file tree
Showing 5 changed files with 50 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/semantic.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Always validate the PR titles and the commits messages
titleAndCommits: true
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

on:
push:
branches:
- master
pull_request:
branches:
- master

jobs:
semantic-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Run semantic-release
if: github.repository == 'divy9881/casbin-cpp' && github.event_name == 'push'
run: |
export PATH="$(yarn global bin):$PATH"
yarn global add semantic-release
semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
13 changes: 13 additions & 0 deletions .releaserc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"debug": true,
"release": {
"branches": [
"master"
]
},
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/github"
]
}
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ Casbin-CPP
====

[![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)
[![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)
[![Gitter](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/casbin/lobby)

**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/
Expand Down
10 changes: 10 additions & 0 deletions lgtm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
path_classifiers:
library:
- casbin
test:
- test
docs:
- README.md
- LICENSE.txt
extraction:
cpp:

0 comments on commit a2fe597

Please sign in to comment.