autocrate/src/release/mod.rs
PlexSheep 45ba3f6b97
Some checks failed
cargo devel CI / cargo CI (push) Failing after 4m0s
contexts for api actions
2024-02-24 14:33:58 +01:00

31 lines
690 B
Rust

use crate::{config::Config, error::*, serverapi::ApiCollection};
pub struct ReleaseContext {
pub draft: bool,
pub prerelease: bool,
pub username: String,
pub repository: String,
pub text: String,
pub tag: String,
pub commit_sig: String
}
pub async fn release(cfg: &Config, apis: &mut ApiCollection) -> Result<()> {
// TODO: git tag
// TODO: push to each server
// TODO: release to each server
tag(cfg).await?;
todo!();
// TODO: check that the release is made
// TODO: generate artifacts
// TODO: upload artifacts
// TODO: upload artifact signatures
Ok(())
}
async fn tag(_cfg: &Config) -> Result<()> {
todo!()
}