Unable to deploy to github.io (dist: xenial)

gh-pages

#1

Using the following environment:
dist: xenial
language: cpp
compiler: gcc

Build successful, but deploy on github.io doesn’t work (token is valid).

Log: https://travis-ci.org/olpotkin/OTUS-CPP-W4-print_ip

Error is:

1.77s$ rvm $(travis_internal_ruby) --fuzzy do ruby -S gem install dpl
Successfully installed dpl-1.10.7
1 gem installed
dpl.1
Installing deploy dependencies
Successfully installed multipart-post-2.0.0
Successfully installed faraday-0.15.4
Successfully installed public_suffix-3.0.3
Successfully installed addressable-2.5.2
Successfully installed sawyer-0.8.1
Successfully installed octokit-4.6.2
Successfully installed dpl-pages-1.10.7
7 gems installed
Logged in as user
dpl.2
Preparing deploy
dpl.3
Deploying application
/home/travis/.rvm/gems/ruby-2.4.5/gems/dpl-pages-1.10.7/lib/dpl/provider/pages.rb:141:in  `mkdir': File exists @ dir_s_mkdir - /tmp/d20190311-4976-k307es/work (Errno::EEXIST) from /home/travis/.rvm/gems/ruby-2.4.5/gems/dpl-pages-1.10.7/lib/dpl/provider/pages.rb:141:in` github_pull_or_init'
from /home/travis/.rvm/gems/ruby-2.4.5/gems/dpl-pages-1.10.7/lib/dpl/provider/pages.rb:195:in  `block in push_app' from /home/travis/.rvm/rubies/ruby-2.4.5/lib/ruby/2.4.0/tmpdir.rb:89:in` mktmpdir'
from /home/travis/.rvm/gems/ruby-2.4.5/gems/dpl-pages-1.10.7/lib/dpl/provider/pages.rb:190:in  `push_app' from /home/travis/.rvm/gems/ruby-2.4.5/gems/dpl-1.10.7/lib/dpl/provider.rb:199:in` block in deploy'
from /home/travis/.rvm/gems/ruby-2.4.5/gems/dpl-1.10.7/lib/dpl/cli.rb:41:in  `fold' from /home/travis/.rvm/gems/ruby-2.4.5/gems/dpl-1.10.7/lib/dpl/provider.rb:199:in ` deploy'
from /home/travis/.rvm/gems/ruby-2.4.5/gems/dpl-1.10.7/lib/dpl/cli.rb:32:in  `run' from /home/travis/.rvm/gems/ruby-2.4.5/gems/dpl-1.10.7/lib/dpl/cli.rb:7:in ` run'
from /home/travis/.rvm/gems/ruby-2.4.5/gems/dpl-1.10.7/bin/dpl:5:in  `<top (required)>' from /home/travis/.rvm/gems/ruby-2.4.5/bin/dpl:23:in ` load'
from /home/travis/.rvm/gems/ruby-2.4.5/bin/dpl:23:in `

'
failed to deploy

#2

Looks like a duplicate of