Skip to content

Instantly share code, notes, and snippets.

@LebedevRI
LebedevRI / auto-deploy.md
Created April 19, 2017 18:06 — forked from domenic/0-github-actions.md
Auto-deploying built products to gh-pages with Travis

Auto-deploying built products to gh-pages with Travis

This is a set up for projects which want to check in only their source files, but have their gh-pages branch automatically updated with some compiled output every time they push.

Create a compile script

You want a script that does a local compile to e.g. an out/ directory. Let's call this compile.sh for our purposes, but for your project it might be npm build or gulp make-docs or anything similar.

The out/ directory should contain everything you want deployed to gh-pages. That almost always includes an index.html.

gchar *_string_get_next_variable(gchar *string, gchar *variable, const size_t variable_size)
{
gchar *end = NULL;
gchar *start = g_strstr_len(string, -1, "$(");
if(start)
{
end = g_strstr_len(start, -1, ")");
if(end)
{
*end = '\0';