Skip to content

Commit 1ff8cd7

Browse files
committed
WIP release build
1 parent 916c175 commit 1ff8cd7

File tree

1 file changed

+24
-4
lines changed

1 file changed

+24
-4
lines changed

.travis.yml

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@ node_js: "12.12.0"
88
cache:
99
directories:
1010
- /home/travis/.cargo
11-
# But don't cache the cargo registry
12-
before_cache:
13-
- rm -rf /home/travis/.cargo/registry
1411
env:
1512
global:
1613
- CARGO_MAKE_RUN_CHECK_FORMAT="true"
@@ -19,6 +16,29 @@ services:
1916
- redis-server
2017
matrix:
2118
fast_finish: true
19+
20+
# Job lifecycle
2221
script:
2322
- which cargo-make || cargo install cargo-make
24-
- cargo make ci-flow
23+
- cargo make ci-flow
24+
# But don't cache the cargo registry
25+
before_cache:
26+
- rm -rf /home/travis/.cargo/registry
27+
# End Job lifecycle
28+
29+
jobs:
30+
include:
31+
- stage: deploy
32+
if: tag IS present
33+
before_deploy:
34+
- cargo build -p validator_worker --release --all-features --target x86_64-unknown-linux-gnu
35+
- cp target/x86_64-unknown-linux-gnu/release/validator_worker validator_worker-v$TRAVIS_TAG
36+
deploy:
37+
provider: releases
38+
api_key: $GITHUB_API_TOKEN
39+
file: $TRAVIS_BUILD_DIR/validator_worker-v$TRAVIS_TAG
40+
skip_cleanup: true
41+
draft: true
42+
on:
43+
tags: true
44+
all_branches: true

0 commit comments

Comments
 (0)