[0.1.1] fix release creation bug
continuous-integration/drone/tag Build is passing Details
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Cadey Ratio 2020-05-31 14:19:22 -04:00
parent 67f44de162
commit 8ec674e6e4
5 changed files with 11 additions and 5 deletions

View File

@ -6,6 +6,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## Unreleased ## Unreleased
## 0.1.1
### FIXED
- Fixed 500 error when creating a new release
## 0.1.0 ## 0.1.0
This is the first release of `gitea-release`! This is the first release of `gitea-release`!

2
Cargo.lock generated
View File

@ -326,7 +326,7 @@ dependencies = [
[[package]] [[package]]
name = "gitea-release" name = "gitea-release"
version = "0.1.0" version = "0.1.1"
dependencies = [ dependencies = [
"anyhow", "anyhow",
"byte-unit", "byte-unit",

View File

@ -1,6 +1,6 @@
[package] [package]
name = "gitea-release" name = "gitea-release"
version = "0.1.0" version = "0.1.1"
authors = ["Christine Dodrill <me@christine.website>"] authors = ["Christine Dodrill <me@christine.website>"]
edition = "2018" edition = "2018"

View File

@ -1 +1 @@
0.1.0 0.1.1

View File

@ -25,7 +25,7 @@ pub(crate) async fn run(
name: rm.name.or(Some(format!("Version {}", tag))).unwrap(), name: rm.name.or(Some(format!("Version {}", tag))).unwrap(),
prerelease: rm.pre_release, prerelease: rm.pre_release,
tag_name: tag.clone(), tag_name: tag.clone(),
target_commitish: tag, target_commitish: "HEAD".into(),
}; };
let resp = cli let resp = cli
@ -38,7 +38,7 @@ pub(crate) async fn run(
.await?; .await?;
if !resp.status().is_success() { if !resp.status().is_success() {
return Err(anyhow!("{:?}", resp.status())); return Err(anyhow!("{:?} -> {}", resp.status(), resp.text().await?));
} }
Ok(()) Ok(())