2024-02-16 20:01:14 +01:00
|
|
|
use crate::{config::Config, error::*, serverapi::ApiCollection};
|
2024-02-16 18:58:20 +01:00
|
|
|
|
2024-02-24 13:24:14 +01:00
|
|
|
pub async fn release(cfg: &Config, apis: &mut ApiCollection) -> Result<()> {
|
2024-02-16 20:00:55 +01:00
|
|
|
// TODO: git tag
|
|
|
|
// TODO: push to each server
|
2024-02-19 22:07:51 +01:00
|
|
|
|
2024-02-16 20:00:55 +01:00
|
|
|
// TODO: release to each server
|
2024-02-19 22:07:51 +01:00
|
|
|
tag(cfg).await?;
|
|
|
|
for api in apis.iter_mut() {
|
|
|
|
api.push_release().await?;
|
|
|
|
}
|
|
|
|
|
|
|
|
for api in apis.iter_mut() {
|
|
|
|
api.push_release().await?;
|
|
|
|
}
|
|
|
|
|
|
|
|
// TODO: check that the release is made
|
|
|
|
// TODO: generate artifacts
|
|
|
|
// TODO: upload artifacts
|
|
|
|
// TODO: upload artifact signatures
|
|
|
|
|
|
|
|
Ok(())
|
|
|
|
}
|
|
|
|
|
|
|
|
async fn tag(cfg: &Config) -> Result<()> {
|
2024-02-16 18:58:20 +01:00
|
|
|
todo!()
|
|
|
|
}
|