Skip to content

Commit b87033b

Browse files
committed
ci: use semantic-release
1 parent 5b5a7e6 commit b87033b

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed

.github/workflows/ci.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,3 +70,20 @@ jobs:
7070
with:
7171
command: clippy
7272
args: -- -D warnings
73+
74+
release:
75+
runs-on: ubuntu-latest
76+
needs:
77+
- clippy
78+
- format
79+
- test
80+
steps:
81+
- name: Checkout
82+
uses: actions/checkout@v2
83+
with:
84+
fetch-depth: 0
85+
86+
- name: Release
87+
uses: codfish/semantic-release-action@master
88+
env:
89+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.releaserc

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"plugins": [
3+
"@semantic-release/commit-analyzer",
4+
"@semantic-release/release-notes-generator",
5+
"@semantic-release/changelog",
6+
[
7+
"@semantic-release/exec",
8+
{
9+
"prepareCmd": "sed -i 's/^version = \\\".*\\\"/version = \"${nextRelease.version}\"/' Cargo.toml && git add Cargo.toml"
10+
}
11+
],
12+
"@semantic-release/git",
13+
"@semantic-release/github"
14+
]
15+
}

0 commit comments

Comments
 (0)