mirror of
https://github.com/alexgo-io/stacks-puppet-node.git
synced 2026-04-22 02:34:48 +08:00
12 lines
330 B
Bash
Executable File
12 lines
330 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -e
|
|
|
|
PREVIOUS_BRANCH=$(git branch | grep ^\* | awk '{print $2}')
|
|
aglio -i docs/api-specs.md --theme-template docs/aglio_templates/core.jade -o /tmp/index.html
|
|
git checkout gh-pages
|
|
cp /tmp/index.html .
|
|
git add index.html
|
|
git commit -m "updating generated doc outputs"
|
|
git push
|
|
git checkout $PREVIOUS_BRANCH
|