# Upload an asset folder to GitHub release using travis

**URL:** <https://travis-ci.community/t/upload-an-asset-folder-to-github-release-using-travis/13459>\
**Category:** Travis CI Discussions & Feedback\
**Created:** [December 9, 2022, 2:35am UTC](https://travis-ci.community/t/upload-an-asset-folder-to-github-release-using-travis/13459 "2022-12-09T02:35:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![navylover](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/navylover/32/8385_2.png) [@navylover](https://travis-ci.community/u/navylover)\
**Post date:** [December 9, 2022, 2:35am UTC](https://travis-ci.community/t/upload-an-asset-folder-to-github-release-using-travis/13459/1 "2022-12-09T02:35:45Z")

</div>

I use travis to automate build and deploy to GitHub release page. Now the structure is:

Assets:

- file1
- file2

But I want to it like this:

Assets:

- folder1
  - file1

- file2

The travis script is (Omit unrelated parts):

```auto
function uploadHasFolder {
  
  echo "upload folder"
  cd root_worksapce
  touch file2
  echo hello > file2
  
  mkdir folder1
  cd folder1
  touch file1
  echo hello > file1
  
}

```

And the .travis.yaml is (Omit unrelated parts):

```auto
deploy:
  provider: releases
  file_glob: true
  file: root_worksapce-${TRAVIS_TAG}/**/*  
  skip_cleanup: true
  on:
    tags: true
  

```

I read the [travis docs](https://the%20https//docs.travis-ci.com/user/deployment/releases/) and no clues. Doesn’t travis support upload folder to GitHub release?
