Skip to content

Commit

Permalink
Include tag in filename of tarball.
Browse files Browse the repository at this point in the history
  • Loading branch information
danielballan committed Sep 6, 2019
1 parent c7f4c42 commit 0028c18
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,15 @@ script:
- lammps -in lammps/in.melt
- python script/calc_scattering.py
- python script/export_first_frame.py xpcs00512.h5 xpcs00512-frame0.png
- tar czf xpcs-baseline.tar.gz xpcs00512.h5 xpcs00512-frame0.png
# Make a tarball to upload.
- export FILE_TO_UPLOAD=xpcs-baseline-${TRAVIS_TAG}.tar.gz
- tar czf ${FILE_TO_UPLOAD} xpcs00512.h5 xpcs00512-frame0.png

deploy:
provider: releases
api_key: $GITHUB_OAUTH_TOKEN
skip_cleanup: true
file_glob: true
file: xpcs-baseline.tar.gz
file: "${FILE_TO_UPLOAD}"
on:
tags: true

0 comments on commit 0028c18

Please sign in to comment.