Skip to content

Commit

Permalink
fix: add automated release config
Browse files Browse the repository at this point in the history
  • Loading branch information
arlyon committed Jan 17, 2023
1 parent 0cc4a43 commit ac5a87a
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Release

on:
workflow_run:
workflows: [CI]
types: [completed]
branches: [master]
workflow_dispatch: {}

# Only allow one release workflow to execute at a time, since each release
# workflow uses shared resources (git tags, package registries)
concurrency:
group: ${{ github.workflow }}

jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
token: ${{ secrets.REPO_SCOPED_TOKEN }}
- uses: dtolnay/rust-toolchain@1.60
- uses: cycjimmy/semantic-release-action@v3
env:
GITHUB_TOKEN: ${{ secrets.REPO_SCOPED_TOKEN }}
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
29 changes: 29 additions & 0 deletions .releaserc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"branches": ["master"],
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/changelog",
[
"@semantic-release-cargo/semantic-release-cargo",
{
"features": {
"async_stripe": "runtime-tokio-hyper"
}
}
],
[
"@semantic-release/git",
{
"assets": ["CHANGELOG.md", "package.json", "Cargo.toml"],
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
}
],
[
"@semantic-release/github",
{
"release": true
}
]
]
}

0 comments on commit ac5a87a

Please sign in to comment.