version 0.5.2
This commit is contained in:
parent
e1db8c4df4
commit
8c4017a3b3
|
@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||||
|
|
||||||
## Unreleased
|
## Unreleased
|
||||||
|
|
||||||
|
## 0.5.2
|
||||||
|
|
||||||
|
Detect tags better.
|
||||||
|
|
||||||
## 0.5.1
|
## 0.5.1
|
||||||
|
|
||||||
Initialize `pretty_env_logger` on app boot. Oops.
|
Initialize `pretty_env_logger` on app boot. Oops.
|
||||||
|
|
|
@ -348,7 +348,7 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "gitea-release"
|
name = "gitea-release"
|
||||||
version = "0.5.1"
|
version = "0.5.2"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"anyhow",
|
"anyhow",
|
||||||
"comrak",
|
"comrak",
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "gitea-release"
|
name = "gitea-release"
|
||||||
version = "0.5.1"
|
version = "0.5.2"
|
||||||
authors = ["Christine Dodrill <me@christine.website>"]
|
authors = ["Christine Dodrill <me@christine.website>"]
|
||||||
edition = "2018"
|
edition = "2018"
|
||||||
|
|
||||||
|
|
|
@ -10,15 +10,17 @@ pub async fn run(
|
||||||
) -> Result<()> {
|
) -> Result<()> {
|
||||||
let repo = git2::Repository::open(".")?;
|
let repo = git2::Repository::open(".")?;
|
||||||
let tag = tag.unwrap_or(version::read_version("VERSION".into())?);
|
let tag = tag.unwrap_or(version::read_version("VERSION".into())?);
|
||||||
|
let vtag = format!("v{}", tag);
|
||||||
|
|
||||||
if git::has_tag(&repo, tag.clone())? {
|
if git::has_tag(&repo, vtag.clone())? {
|
||||||
return Err(anyhow::anyhow!("what"));
|
return Err(anyhow::anyhow!("what"));
|
||||||
}
|
}
|
||||||
|
|
||||||
let desc = changelog::read(fname, tag.clone())?;
|
let desc = changelog::read(fname, tag.clone())?;
|
||||||
let cli = gitea::Client::new(common.server, common.token, crate::APP_USER_AGENT)?;
|
let cli = gitea::Client::new(common.server, common.token, crate::APP_USER_AGENT)?;
|
||||||
let vtag = format!("v{}", tag);
|
let repo = cli
|
||||||
let repo = cli.get_repo(common.owner.clone(), common.repo.clone()).await?;
|
.get_repo(common.owner.clone(), common.repo.clone())
|
||||||
|
.await?;
|
||||||
|
|
||||||
let cr = gitea::CreateRelease {
|
let cr = gitea::CreateRelease {
|
||||||
body: desc,
|
body: desc,
|
||||||
|
|
Loading…
Reference in New Issue