github_pages_rake_tasks 0.1.7 → 0.1.8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d0884154ca757c4cf0f2c78d8f9a534392df46d8f8327ae81045c6c78c7892fc
4
- data.tar.gz: aca34274486c2d7b45720cc64eb26f76ee003ae2a97c701cfeaca7110a304e4f
3
+ metadata.gz: 71feedbea3a7b3a3ba77e353c1afff5149689dc04a855bff133535efb00d4fa5
4
+ data.tar.gz: 8fa5b5affc6d89da6d566a71e5ba85de9266194371cc5d443c8a8ee2f9d228f1
5
5
  SHA512:
6
- metadata.gz: b943485704ffffb8c13286cbb492fd02ff5990e991c3b165d05799b9629b761436a8f79f08bc55f96676d14434a2c75e836a65647232dfb96e9a5b7a97d1dc4d
7
- data.tar.gz: e1313d19d92657616d5b9af0e4f51da1ef292b801fe570585d1b4f10f882fa4421473647f37c19faf8f14d49663458f21b3f6347a4fd52af1d6f5d3384e02c67
6
+ metadata.gz: f7523979ac5e454688786d078193382b9f4f4b1ed1ac5cfc4d61637599a3be401fdfeaca0c0441bc012f24aee504c98a9f86a3c73e41b99f2d48a591fb2b6d67
7
+ data.tar.gz: 1c7435fedb69c97a1c06d30bb4ef98e7ccee977fe51695f95d34024c138b0dbc22eb9a9dc3479df0795b0345fe222fd5bc9b1374f73ff248571641d2524f410d
@@ -10,11 +10,18 @@ cache: bundler
10
10
  before_install: gem install bundler -v 2.0.1
11
11
 
12
12
  before_deploy:
13
- - echo "machine github.com\n login jcouball\n password ${GITHUB_TOKEN}" > ~/.netrc
14
- - git config --global user.email "travis@travis-ci.org"
15
- - git config --global user.name "Travis CI"
16
- - gem install bump
17
- - bump patch --commit-message "[skip ci]"
13
+ - >
14
+ if ! [ "$HAS_ALREADY_RUN" ]; then
15
+ export HAS_ALREADY_RUN=1
16
+ echo "machine github.com\n login jcouball\n password ${GITHUB_TOKEN}" > ~/.netrc
17
+ git config --global user.email "travis@travis-ci.org"
18
+ git config --global user.name "Travis CI"
19
+ git checkout ${TRAVIS_BRANCH}
20
+ gem install bump
21
+ bump patch --commit-message "[skip ci]"
22
+ remote=https://$GITHUB_TOKEN@github.com/$TRAVIS_REPO_SLUG
23
+ git push --follow-tags "$remote" "$TRAVIS_BRANCH"
24
+ fi
18
25
 
19
26
  deploy:
20
27
  - provider: pages
data/README.md CHANGED
@@ -5,11 +5,11 @@
5
5
  [![Build Status](https://travis-ci.com/jcouball/github_pages_rake_tasks.svg?branch=master)](https://travis-ci.com/jcouball/github_pages_rake_tasks)
6
6
  [![Documentation](https://img.shields.io/badge/Documentation-OK-green.svg)](https://jcouball.github.io/github_pages_rake_tasks/)
7
7
 
8
- The `github_pages_rake_tasks` gem creates a rake task that pushes the contents
8
+ The `github_pages_rake_tasks` gem creates a rake task that pushes files
9
9
  from a local documentation directory to a remote Git repository branch.
10
10
 
11
11
  By default, the rake task `github-pages:publish` is created which pushes the `doc`
12
- directory within the local copy of your repository to the same repository's
12
+ directory within the local copy of a repository to the same repository's
13
13
  `gh-pages` branch. The contents of the branch are completely replaced by the
14
14
  contents of the documentation directory.
15
15
 
@@ -3,5 +3,5 @@
3
3
 
4
4
  module GithubPagesRakeTasks
5
5
  # Version of this module
6
- VERSION = '0.1.7'
6
+ VERSION = '0.1.8'
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: github_pages_rake_tasks
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Couball