File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -9,4 +9,4 @@ before_script: bundle exec rake generate
99script : bundle exec rake release
1010env :
1111 global :
12- secure : UpgcPKzyC19Yo5n9T3UdLmai9mYPAeTrzr2euvI/6Y5VVBg+EffxAxYsmMGLNT+LXaGF7cusH9ooVZwRZd6mRw5z+QkYxrSMCMMIwmUyrRNYZBj/nEOHsor05n81jJTeicwlHKV9ggOq9kshPyWlD1TuHNuApAePeE8q59U+p8I =
12+ secure : KLuKTR30DpaXXh3Vr0LoSYhXn7OsPL/yR5yoRUKB7C6MKxPFt+5gHzdPbXcx/hrcheXkQad4elxkco8qQiKWe4hNeorQFssbsvVSe2P5s2GMaYJma+WdEwDlYwsjpP98xIQ4v5vRamXehfpB8jy/n+mlvdGAIiXA/d1ka9BpkJI =
Original file line number Diff line number Diff line change @@ -35,9 +35,15 @@ desc "Release the current commit to ruby-korea/ruby-korea.github.io@gh-pages"
3535task :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"
You can’t perform that action at this time.
0 commit comments