generated from PlexSheep/rs-base
Merge branch 'devel' of https://git.cscherr.de/PlexSheep/autocrate into devel
cargo devel CI / cargo CI (push) Successful in 3m48s
Details
cargo devel CI / cargo CI (push) Successful in 3m48s
Details
This commit is contained in:
commit
acc5381dd1
|
@ -4,12 +4,10 @@ use autocrate::{
|
|||
cli::{Cli, Commands},
|
||||
Config,
|
||||
},
|
||||
release::release,
|
||||
serverapi::init_servers,
|
||||
publish::publish,
|
||||
error::*,
|
||||
publish::publish,
|
||||
release::release,
|
||||
serverapi::init_servers,
|
||||
};
|
||||
|
||||
#[tokio::main]
|
||||
|
@ -22,8 +20,8 @@ async fn main() -> Result<()> {
|
|||
println!("{}", Changelog::build(&cfg)?);
|
||||
}
|
||||
Commands::Release { .. } => {
|
||||
init_servers(&cfg).await?;
|
||||
release(&cfg).await?;
|
||||
let mut apis = init_servers(&cfg).await?;
|
||||
release(&cfg, &mut apis).await?;
|
||||
}
|
||||
Commands::Publish { .. } => {
|
||||
publish(&cfg).await?;
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
use crate::{config::Config, error::*, serverapi::ApiCollection};
|
||||
|
||||
pub async fn release(cfg: &Config, apis: ApiCollection) -> Result<()> {
|
||||
pub async fn release(cfg: &Config, apis: &mut ApiCollection) -> Result<()> {
|
||||
// TODO: git tag
|
||||
// TODO: version bump
|
||||
// TODO: version select interactive
|
||||
|
|
Loading…
Reference in New Issue