Skip to content

Commit e05b934

Browse files
authored
Update deploy.sh
1 parent b51df20 commit e05b934

File tree

1 file changed

+12
-18
lines changed

1 file changed

+12
-18
lines changed

deploy.sh

+12-18
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,12 @@
1-
#!/usr/bin/env bash
2-
set -e
3-
4-
rm -rf build/* || exit 0;
5-
mkdir build;
6-
pip install -U pip
7-
pip install misaka==1.0.2
8-
pip install mynt==0.2.3
9-
mynt gen -f . build
10-
( cd build
11-
git init
12-
git config user.name "Travis-CI"
13-
git config user.email "contact@travis-ci.com"
14-
cp ../CNAME ./CNAME
15-
git add .
16-
git commit -m "Deployed to Github Pages"
17-
git push --force --quiet "https://${GH_TOKEN}@${GH_REF}" master:gh-pages > /dev/null 2>&1
18-
)
1+
#!/bin/bash
2+
set -e && \
3+
cd ./_site && \
4+
remote_branch="gh-pages" && \
5+
git init && \
6+
git config user.name "Travis-CI" && \
7+
git config user.email "contact@travis-ci.com" && \
8+
git add . && \
9+
git commit -m'Deployed to Github' && \
10+
git push --force --quiet "https://${GH_TOKEN}@${GH_REF}" master:$remote_branch > /dev/null 2>&1 && \
11+
rm -fr .git && \
12+
cd ../

0 commit comments

Comments
 (0)