Github action to automatically create a github release on merge to main.
Skips if a release already exists with the version defined in Cargo.toml
.
Only works for rust projects.
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: manoadamro/rust-release@v1
with:
owner: ${{ github.repository_owner }}
repo: ${{ github.repository }}
token: ${{ secrets.GITHUB_TOKEN }}
name | description | default | notes |
---|---|---|---|
repo | name of github repo | ${{ github.repository }} |
|
owner | owner of github repo | ${{ github.repository_owner }} |
|
token | github token | ${{ secrets.GITHUB_TOKEN }} |
|
cargo | path to Cargo.toml |
Cargo.toml |
|
dry_run | no changes are made unless "false" | "false" |