Skip to content

Upload to gh-pages on Windows leads to "failed to deploy" #1105

@koppor

Description

@koppor

I am using both Linux and Windows build and want to upload the build artifacts to gh-pages. It works on Linux, but not on Windows.

Maybe refs #990.

Linux output

Deploying application
cd /tmp/d20190921-7771-1mayyff/work
commit 97cf8e2281e1900fee3628b4173f771b1c7a9424
Author: Deployment Bot (from Travis CI) <deploy@travis-ci.org>
Date:   Sat Sep 21 10:10:05 2019 +0000

    Deploy adr/adr-j to github.com/adr/adr-j.git:gh-pages

 adr-j-3.1.0-SNAPSHOT-fat.jar | Bin 3646185 -> 3646185 bytes
 adr-j-3.1.0-SNAPSHOT.jar     | Bin 34788 -> 34788 bytes
 2 files changed, 0 insertions(+), 0 deletions(-)
cd -

Job: https://travis-ci.org/adr/adr-j/jobs/587801259

Windows output

failed to deploy
The system cannot find the path specified.
The system cannot find the path specified.
Logged in as @koppor (Oliver Kopp)
The system cannot find the path specified.
C:/tools/ruby25/lib/ruby/gems/2.5.0/gems/dpl-pages-1.10.12/lib/dpl/provider/pages.rb:141:in `mkdir': File exists @ dir_s_mkdir - C:/Users/travis/AppData/Local/Temp/d20190921-3448-1om9jol/work (Errno::EEXIST)
	from C:/tools/ruby25/lib/ruby/gems/2.5.0/gems/dpl-pages-1.10.12/lib/dpl/provider/pages.rb:141:in `github_pull_or_init'

Job: https://travis-ci.org/adr/adr-j/jobs/587801260

Background

Build file: https://github.com/adr/adr-j/blob/b16307e33e67c4ede1a3f16b652abcff626b5cfb/.travis.yml

deploy:
  provider: pages
  skip_cleanup: true
  github_token: $GITHUB_TOKEN  # Set in the settings page of your repository, as a secure variable
  keep_history: true
  local_dir: build/libs
  on:
    branch: enable-native-image-using-gradle-plugin

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions