Skip to content

Commit

Permalink
Merge pull request #106 from closetool/master
Browse files Browse the repository at this point in the history
fix: github action bot
  • Loading branch information
hsluoyz authored May 1, 2021
2 parents 6aa5aaa + 10ae095 commit 65243a1
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,11 @@ jobs:
steps:

- uses: actions/checkout@v2

- name: Run semantic-release
uses: go-semantic-release/action@v1
if: github.repository == 'casbin/gorm-adapter' && github.event_name == 'push'
with:
github-token: ${{ secrets.GH_TOKEN }}
run: |
npm install --save-dev [email protected]
npx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
16 changes: 16 additions & 0 deletions .releaserc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"debug": true,
"branches": [
"+([0-9])?(.{+([0-9]),x}).x",
"master",
{
"name": "beta",
"prerelease": true
}
],
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/github"
]
}

0 comments on commit 65243a1

Please sign in to comment.