No windows asset file found after deploy to Github release success

Here are my .travis.yml:

dist: trusty
language: generic
services: docker
sudo: required

env:
  global:
  # Default target on travis-ci.
  # Used as conditional check in the install stage
  - HOST=x86_64-unknown-linux-gnu
  - PROJECT_NAME=anyshortcut-cli

cache:
  directories:
  - $HOME/.cargo
  - $TRAVIS_BUILD_DIR/target

matrix:
  include:
  # Linux
  - os: linux
    env:
    - TARGET=i686-unknown-linux-musl
    - DOCKER_IMAGE_TAG=i686-musl
    script: bash ci/build_in_docker.sh

  - os: linux
    env:
    - TARGET=x86_64-unknown-linux-musl
    - DOCKER_IMAGE_TAG=x86_64-musl
    script: bash ci/build_in_docker.sh

  # OSX
  - os: osx
    language: rust
    env: TARGET=x86_64-apple-darwin
    script:
    - cargo build --release --target $TARGET --verbose

  - os: windows
    language: rust
    env: TARGET=x86_64-pc-windows-msvc
    script:
    - cargo build --release --target $TARGET --verbose
    before_deploy:
    - powershell -executionpolicy bypass -File "ci\before_deploy.ps1"

before_install: true

before_deploy:
- bash ci/before_deploy.sh

deploy:
  provider: releases
  api_key:
    # Generate secure token with travis encrypt --pro
    secure: "VSjB9datAXSA678W+fF5M2KELZpIucBUQATRuHXTwq5VYxhiy7fvX8lM5fEGZAUVqFQJDo9Isf75GHtMoR0dmjxqIXitdDkD117xo8Ta6uq11q1SCx+OGLh9rlNtVLSPOxL+VdhN5CmoccBzf01Lv2yiWPIzOd/u6OfK0MVAQ3C+Gp4aCdpI5AfoSgYXUnYtNLo9p4ul9eTyrzqDAZbRoYNx71rFUBz2kWmnifb+vBbg6+w+dxs+UAFj5+f29S7DGV0vyIMYocrXhjfkGu2jkS6tVFRZLrGAm2Yknh7A7A0brTdeQaItbmW6ddAR7uD7AlXvR5pND5RwME217GHYklmYg2eP084idfqvNMLdomF8WTt5PB1tVUg4NxasQLki/Qi/cUDeWARFbCsN86YYX78t7UFMkvR5mBdfe7HCUUiPBaelM7YF86jp20Sb6Dc9/RXqbzrXN0EHIhD0/YoIMC5JUyZDiYK5Bg2z9yd1YO/VBLFTng5gt9+M//abDlq00ufnjlEIgOtFBGjWNuG/iKS6A0qdwGI+bcm7S/VnqewfAhLHNDzXtUqSs1NWK2j496sZLCQcVaZnB2fvoUIwx8ah+d8tkoaB5YC15NlBXSt2iG7ijjxk5TPSJaYOwmX93fVQF1HfB/n0kxad10ldgkd1RtGhkLJK8k/nj23CZOM="
  file_glob: true
  file: $PROJECT_NAME-$TRAVIS_TAG-$TARGET.*
  skip_cleanup: true
  on:
    tags: true

before_cache:
# Travis can't cache files that are not readable by "others"
- chmod -R a+r $HOME/.cargo

branches:
  only:
  - "/^v\\d+\\.\\d+\\.\\d+.*$/"
  - master

notifications:
  email:
    on_success: never

Here are the windows build logs (https://travis-ci.com/anyshortcut/anyshortcut-cli/jobs/152600769):

Installing deploy dependencies
dpl.2
Preparing deploy
dpl.3
Deploying application
Done. Your build exited with 0.
The system cannot find the path specified.
The system cannot find the path specified.
Logged in as Folyd
Deploying to repo: anyshortcut/anyshortcut-cli
Current tag is: v0.2.0

The deployment is success, but no windows asset file has been upload to Github.


The deployment did not succeed on this Windows job.

https://travis-ci.com/anyshortcut/anyshortcut-cli/jobs/152600769#L356-L357

The I/O on Windows sometimes comes in out of order.

I also have the exact same problem. See https://travis-ci.com/cwbaker/forge/jobs/188734444. Is there a solution or workaround? It happens to me on each Windows build although I feel that I have had at least one that has worked.

There was a similar issue recently, which I suppose is the root cause here:

That works perfectly. Thanks!