Skip to content

Commit add70e6

Browse files
committed
Use https protocol for travis
1 parent d1f7015 commit add70e6

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

‎.travis.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ before_script: bundle exec rake generate
99
script: bundle exec rake release
1010
env:
1111
global:
12-
secure: UpgcPKzyC19Yo5n9T3UdLmai9mYPAeTrzr2euvI/6Y5VVBg+EffxAxYsmMGLNT+LXaGF7cusH9ooVZwRZd6mRw5z+QkYxrSMCMMIwmUyrRNYZBj/nEOHsor05n81jJTeicwlHKV9ggOq9kshPyWlD1TuHNuApAePeE8q59U+p8I=
12+
secure: KLuKTR30DpaXXh3Vr0LoSYhXn7OsPL/yR5yoRUKB7C6MKxPFt+5gHzdPbXcx/hrcheXkQad4elxkco8qQiKWe4hNeorQFssbsvVSe2P5s2GMaYJma+WdEwDlYwsjpP98xIQ4v5vRamXehfpB8jy/n+mlvdGAIiXA/d1ka9BpkJI=

‎Rakefile‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,15 @@ desc "Release the current commit to ruby-korea/ruby-korea.github.io@gh-pages"
3535
task :release do
3636
commit = `git rev-parse HEAD`.chomp
3737
system "mkdir -p vendor/ruby-korea.github.io"
38-
system "git clone git@github.com:ruby-korea/ruby-korea.github.io.git vendor/ruby-korea.github.io"
38+
system "git clone https://github.com/ruby-korea/ruby-korea.github.io.git vendor/ruby-korea.github.io"
3939

4040
Dir.chdir "vendor/ruby-korea.github.io" do
41+
sh "git config user.name '#{ENV['GIT_NAME']}'"
42+
sh "git config user.email '#{ENV['GIT_EMAIL']}'"
43+
sh 'git config credential.helper "store --file=.git/credentials"'
44+
File.open('.git/credentials', 'w') do |f|
45+
f.write("https://#{ENV['GH_TOKEN']}:@github.com")
46+
end
4147
sh "git reset --hard HEAD"
4248
sh "git checkout gh-pages"
4349
sh "git pull origin gh-pages"

0 commit comments

Comments
 (0)