Skip to content

Commit 0028c18

Browse files
committed
Include tag in filename of tarball.
1 parent c7f4c42 commit 0028c18

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.travis.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,15 @@ script:
1717
- lammps -in lammps/in.melt
1818
- python script/calc_scattering.py
1919
- python script/export_first_frame.py xpcs00512.h5 xpcs00512-frame0.png
20-
- tar czf xpcs-baseline.tar.gz xpcs00512.h5 xpcs00512-frame0.png
20+
# Make a tarball to upload.
21+
- export FILE_TO_UPLOAD=xpcs-baseline-${TRAVIS_TAG}.tar.gz
22+
- tar czf ${FILE_TO_UPLOAD} xpcs00512.h5 xpcs00512-frame0.png
2123

2224
deploy:
2325
provider: releases
2426
api_key: $GITHUB_OAUTH_TOKEN
2527
skip_cleanup: true
2628
file_glob: true
27-
file: xpcs-baseline.tar.gz
29+
file: "${FILE_TO_UPLOAD}"
2830
on:
2931
tags: true

0 commit comments

Comments
 (0)