Skip to main content

push_static_site

Function push_static_site 

Source
pub fn push_static_site(
    token: &str,
    full_name: &str,
    files: HashMap<String, String>,
) -> Result<(), String>
Expand description

Pushes a directory of files to a GitHub repository using the Git Data API. files is a map of file path (e.g. “index.html”) to its string content.