mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-04-24 14:28:42 +00:00
Use release PR action (#330)
This commit is contained in:
parent
0cb4c993b3
commit
280bc974eb
3 changed files with 70 additions and 75 deletions
52
.github/scripts/release-pr-template.ejs
vendored
Normal file
52
.github/scripts/release-pr-template.ejs
vendored
Normal file
|
@ -0,0 +1,52 @@
|
|||
This is a release PR for version **<%= version.actual %>**<%
|
||||
if (version.actual != version.desired) {
|
||||
%> (performing a <%= version.desired %> bump).<%
|
||||
} else {
|
||||
%>.<%
|
||||
}
|
||||
%>
|
||||
|
||||
<% if (pr.mergeStrategy == "merge") { %>
|
||||
**Use a merge commit.**
|
||||
<% } else if (pr.mergeStrategy == "rebase") { %>
|
||||
**Use rebase merge.**
|
||||
<% } else if (pr.mergeStrategy == "squash") { %>
|
||||
**Use squash merge.**
|
||||
<% } else if (pr.mergeStrategy == "bors") { %>
|
||||
**Merge by commenting:**
|
||||
| bors r+ |
|
||||
|:-:|
|
||||
<% } %>
|
||||
|
||||
<% if (crate.name == "cargo-binstall") { %>
|
||||
Upon merging, this will automatically build the CLI and create a GitHub release.
|
||||
<% } else { %>
|
||||
Upon merging, this will create the tag `<%= crate.name %>-<%= version.actual %>`.
|
||||
<% } %>
|
||||
|
||||
You will still need to manually publish the cargo crate:
|
||||
|
||||
```
|
||||
$ git pull
|
||||
$ git switch --detach v{version}
|
||||
$ cargo publish
|
||||
```
|
||||
|
||||
<% if (pr.releaseNotes) { %>
|
||||
---
|
||||
|
||||
_Edit release notes into the section below:_
|
||||
|
||||
<!-- do not change or remove this heading -->
|
||||
### Release notes
|
||||
|
||||
_Binstall is a tool to fetch and install Rust-based executables as binaries. It aims to be a drop-in replacement for \`cargo install\` in most cases. Install it today with \`cargo install cargo-binstall\`, from the binaries below, or if you already have it, upgrade with \`cargo binstall cargo-binstall\`._
|
||||
|
||||
#### In this release:
|
||||
|
||||
-
|
||||
|
||||
#### Other changes:
|
||||
|
||||
-
|
||||
<% } %>
|
28
.github/scripts/release-pr.txt
vendored
28
.github/scripts/release-pr.txt
vendored
|
@ -1,28 +0,0 @@
|
|||
This is a release PR for version **%version%**.
|
||||
|
||||
**Use squash merge.**
|
||||
Upon merging, this will automatically build the CLI and create a GitHub release.
|
||||
You still need to manually publish the cargo crate.
|
||||
|
||||
```
|
||||
$ git pull
|
||||
$ git checkout v%version%
|
||||
$ cargo publish
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
_Edit release notes into the section below:_
|
||||
|
||||
<!-- do not change or remove this heading -->
|
||||
### Release notes
|
||||
|
||||
_Binstall is a tool to fetch and install Rust-based executables as binaries. It aims to be a drop-in replacement for `cargo install` in most cases. Install it today with `cargo install cargo-binstall`, from the binaries below, or if you already have it, upgrade with `cargo binstall cargo-binstall`._
|
||||
|
||||
#### In this release:
|
||||
|
||||
-
|
||||
|
||||
#### Other changes:
|
||||
|
||||
-
|
Loading…
Add table
Add a link
Reference in a new issue