# SOLVED: Windows release deploy artifact missing in github after (apparent) successful windows job

**URL:** <https://travis-ci.community/t/solved-windows-release-deploy-artifact-missing-in-github-after-apparent-successful-windows-job/2827>\
**Category:** Windows\
**Created:** [March 28, 2019, 1:18pm UTC](https://travis-ci.community/t/solved-windows-release-deploy-artifact-missing-in-github-after-apparent-successful-windows-job/2827 "2019-03-28T13:18:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tombech](https://avatars.discourse-cdn.com/v4/letter/t/c67d28/32.png) [@tombech](https://travis-ci.community/u/tombech)\
**Post date:** [March 28, 2019, 1:18pm UTC](https://travis-ci.community/t/solved-windows-release-deploy-artifact-missing-in-github-after-apparent-successful-windows-job/2827/1 "2019-03-28T13:18:11Z")

</div>

I’m attempting to use pyinstaller with os: windows to create a .exe file from a python script (on a pushed git tag). The build seems to work fine, the built .exe file is zipped into the ‘artifact’ subfolder and the job seems to finish successfully, but the artifact never ends up in the github release: [https://travis-ci.org/tombech/sesam-py/jobs/512494774](https://travis-ci.org/tombech/sesam-py/jobs/512494774)

The linux and osx artifacts jobs work as expected (but use tarballs instead).

I’m fairly new to travis, am I doing something obviously wrong here? I’ve looked at the known issues topic but can’t see a matching issue there.

(the .travis.yml is probably a bit messy due to trying various thing to make it work: [https://github.com/tombech/sesam-py/blob/master/.travis.yml](https://github.com/tombech/sesam-py/blob/master/.travis.yml))

---

<div class="post-metadata">

**Author:** ![BanzaiMan](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/banzaiman/32/67_2.png) [@BanzaiMan](https://travis-ci.community/u/BanzaiMan)\
**Post date:** [March 28, 2019, 2:00pm UTC](https://travis-ci.community/t/solved-windows-release-deploy-artifact-missing-in-github-after-apparent-successful-windows-job/2827/2 "2019-03-28T14:00:12Z")

</div>

My initial guess is that on Windows, `$TRAVIS_BUILD_DIR` is not properly resolved by Ruby.

> <https://github.com/tombech/sesam-py/blob/bd0b36f67df7321a98213485d32b77f0706a8241/.travis.yml#L30>

So there is no file to upload. If you are certain that you are in `$TRAVIS_BUILD_DIR` during the deployment, perhaps dropping it from the `file` value would result in successful upload.

---

<div class="post-metadata">

**Author:** ![tombech](https://avatars.discourse-cdn.com/v4/letter/t/c67d28/32.png) [@tombech](https://travis-ci.community/u/tombech)\
**Post date:** [March 28, 2019, 2:55pm UTC](https://travis-ci.community/t/solved-windows-release-deploy-artifact-missing-in-github-after-apparent-successful-windows-job/2827/3 "2019-03-28T14:55:14Z")

</div>

Thanks! That seems indeed to be the problem. Removing “$TRAVIS\_BUILD\_DIR” from the deploy config worked for me.
