Skip to content

Commit 19b1d22

Browse files
authored
Merge pull request #236 from AdExNetwork/issue-232-binary-release
Issue #232 Binary release
2 parents 6717c73 + ddb274b commit 19b1d22

File tree

1 file changed

+28
-6
lines changed

1 file changed

+28
-6
lines changed

.travis.yml

Lines changed: 28 additions & 6 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,31 @@ services:
1916
- redis-server
2017
matrix:
2118
fast_finish: true
22-
script:
23-
- which cargo-make || cargo install cargo-make
24-
- cargo make ci-flow
19+
20+
stages:
21+
- test
22+
- deploy
23+
24+
jobs:
25+
include:
26+
- stage: test
27+
script:
28+
- which cargo-make || cargo install cargo-make
29+
- cargo make ci-flow
30+
# But don't cache the cargo registry
31+
before_cache:
32+
- rm -rf /home/travis/.cargo/registry
33+
- stage: deploy
34+
if: tag IS present
35+
before_deploy:
36+
- 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
38+
deploy:
39+
provider: releases
40+
api_key: $GITHUB_API_TOKEN
41+
file: $TRAVIS_BUILD_DIR/validator_worker-v$TRAVIS_TAG
42+
skip_cleanup: true
43+
draft: true
44+
on:
45+
tags: true
46+
all_branches: true

0 commit comments

Comments
 (0)