jgd 1.3.1 → 1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.md +2 -0
- data/bash/deploy.sh +13 -5
- data/jgd.gemspec +1 -1
- metadata +2 -2
data/README.md
CHANGED
|
@@ -37,3 +37,5 @@ The environment variable `$PASSWORD` is set through
|
|
|
37
37
|
[here](http://docs.travis-ci.com/user/encryption-keys/).
|
|
38
38
|
|
|
39
39
|
Don't forget to add `gem require 'jgd'` to your `Gemfile`.
|
|
40
|
+
|
|
41
|
+
Read also [this article](http://www.yegor256.com/2014/06/22/jekyll-github-deploy.html).
|
data/bash/deploy.sh
CHANGED
|
@@ -10,8 +10,16 @@ CLONE=${TEMP}/clone
|
|
|
10
10
|
echo -e "Cloning Github repository:"
|
|
11
11
|
git clone "${URL}" "${CLONE}"
|
|
12
12
|
|
|
13
|
-
echo -e "\
|
|
13
|
+
echo -e "\nRegistering variables:"
|
|
14
14
|
cd "${CLONE}"
|
|
15
|
+
USER_EMAIL=$(git config --get user.email)
|
|
16
|
+
USER_EMAIL=${USER_EMAIL:-"jgd@teamed.io"}
|
|
17
|
+
USER_NAME=$(git config --get user.name)
|
|
18
|
+
USER_NAME=${USER_NAME:-"jekyll-github-deploy"}
|
|
19
|
+
|
|
20
|
+
VERSION=$(git describe --always --tag)
|
|
21
|
+
|
|
22
|
+
echo -e "\nBuilding Jekyll site:"
|
|
15
23
|
rm -rf _site
|
|
16
24
|
jekyll build
|
|
17
25
|
cp -R _site ${TEMP}
|
|
@@ -26,11 +34,11 @@ fi
|
|
|
26
34
|
echo -e "\nDeploying into gh-pages branch:"
|
|
27
35
|
rm -rf *
|
|
28
36
|
cp -R ${TEMP}/_site/* .
|
|
29
|
-
rm README.md
|
|
37
|
+
rm -f README.md
|
|
30
38
|
git add .
|
|
31
|
-
git config user.email "
|
|
32
|
-
git config user.name "
|
|
33
|
-
git commit -am "new site version deployed" --allow-empty
|
|
39
|
+
git config user.email "${USER_EMAIL}"
|
|
40
|
+
git config user.name "${USER_NAME}"
|
|
41
|
+
git commit -am "new site version ${VERSION} deployed" --allow-empty
|
|
34
42
|
git push origin gh-pages 2>&1 | sed 's|'$URL'|[skipped]|g'
|
|
35
43
|
|
|
36
44
|
echo -e "\nCleaning up:"
|
data/jgd.gemspec
CHANGED
|
@@ -5,7 +5,7 @@ Gem::Specification.new do |s|
|
|
|
5
5
|
s.rubygems_version = '2.2.2'
|
|
6
6
|
s.required_ruby_version = '>= 1.9.3'
|
|
7
7
|
s.name = 'jgd'
|
|
8
|
-
s.version = '1.
|
|
8
|
+
s.version = '1.4'
|
|
9
9
|
s.license = 'MIT'
|
|
10
10
|
s.summary = "Jekyll Github Deploy"
|
|
11
11
|
s.description = "Automated deployment of your Jekyll blog to Github Pages"
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: jgd
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: '1.4'
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2014-07-
|
|
12
|
+
date: 2014-07-23 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: trollop
|