mirror of
https://github.com/funkypenguin/geek-cookbook/
synced 2025-12-13 01:36:23 +00:00
First cut at auto-processing
This commit is contained in:
3
scripts/markdown-to-markua.sh
Executable file
3
scripts/markdown-to-markua.sh
Executable file
@@ -0,0 +1,3 @@
|
||||
!#/bin/bash
|
||||
|
||||
# Do nothing, yet. This is where the sed magic will go
|
||||
22
scripts/push-markua-to-branch.sh
Normal file
22
scripts/push-markua-to-branch.sh
Normal file
@@ -0,0 +1,22 @@
|
||||
#!/bin/sh
|
||||
|
||||
setup_git() {
|
||||
git config --global user.email "travis@travis-ci.org"
|
||||
git config --global user.name "Travis CI"
|
||||
}
|
||||
|
||||
commit_website_files() {
|
||||
git checkout -b leanpub-preview
|
||||
git add manuscript
|
||||
git commit --message "Travis build: $TRAVIS_BUILD_NUMBER"
|
||||
}
|
||||
|
||||
upload_files() {
|
||||
#git remote add origin-leanpub-preview https://${LEANPUB-PREVIEW-TOKEN}@github.com/funkypenguin/geek-cookbook.git > /dev/null 2>&1
|
||||
git remote add origin-leanpub-preview https://${LEANPUB-PREVIEW-TOKEN}@github.com/funkypenguin/geek-cookbook.git
|
||||
git push --quiet --set-upstream origin-leanpub-preview leanpub-preview
|
||||
}
|
||||
|
||||
setup_git
|
||||
commit_website_files
|
||||
upload_files
|
||||
Reference in New Issue
Block a user