Skip to content

Commit

Permalink
fix release file in travis
Browse files Browse the repository at this point in the history
  • Loading branch information
yzs981130 committed Jun 25, 2019
1 parent 991bd3c commit 976a460
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,17 +41,15 @@ before_install:
- sudo cp /usr/local/cuda/targets/x86_64-linux/lib/stubs/libcuda.so /usr/lib/
script:
- "./build.sh"
- find release -type f -name *so -exec mv '{}' '{}'${CUDA_SHORT} \;
- find release -type f -name *so -exec mv '{}' '{}'.${CUDA_SHORT} \;
- ls -l release/

before_deploy:
- export RELEASE_FILE=$(ls release/*.so)
- echo "deploying $RELEASE_FILE to GitHub releases"
deploy:
provider: releases
api_key: $GITHUB_ACCESS_TOKEN
skip_cleanup: true
file_glob: true
file: "${RELEASE_FILE}"
file: release/*
on:
repo: yzs981130/cuda-wrapper
tags: true

0 comments on commit 976a460

Please sign in to comment.