Skip to content

Commit 26c6198

Browse files
committed
TravisCI - trigger validator release on validator-v*
1 parent 3a17267 commit 26c6198

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.travis.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,16 +31,16 @@ jobs:
3131
before_cache:
3232
- rm -rf /home/travis/.cargo/registry
3333
- stage: deploy
34-
if: tag IS present
34+
if: (tag IS present) AND (tag =~ ^validator-v)
3535
before_deploy:
3636
- cargo build -p validator_worker --release --all-features --target x86_64-unknown-linux-gnu
37-
- cp target/x86_64-unknown-linux-gnu/release/validator_worker validator_worker-v$TRAVIS_TAG
37+
- cp target/x86_64-unknown-linux-gnu/release/validator_worker $TRAVIS_TAG
3838
deploy:
3939
provider: releases
4040
api_key: $GITHUB_API_TOKEN
41-
file: $TRAVIS_BUILD_DIR/validator_worker-v$TRAVIS_TAG
41+
file: $TRAVIS_BUILD_DIR/$TRAVIS_TAG
4242
skip_cleanup: true
4343
draft: true
4444
on:
4545
tags: true
46-
all_branches: true
46+
all_branches: true

0 commit comments

Comments
 (0)