forked from stratum-mining/stratum
-
Notifications
You must be signed in to change notification settings - Fork 0
/
sv2-publish.sh
executable file
·40 lines (35 loc) · 1.05 KB
/
sv2-publish.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#! /usr/bin/sh
# This program utilizes cargo-smart-release to auto-version and publish the sv2 crates
# See https://crates.io/crates/cargo-smart-release for more information about the crate
# *** For publishing the following flags should be passed as arguments:
# `-e -u --no-push`
# *** For updating versions without publishing the following flags should be passed as arguments:
# `-e -u --no-publish --no-push --no-changelog`
output=$(cargo smart-release \
sv1_api \
binary_sv2 \
binary_codec_sv2 \
derive_codec_sv2 \
serde_sv2 \
codec_sv2 \
const_sv2 \
framing_sv2 \
noise_sv2 \
roles_logic_sv2 \
common_messages_sv2 \
job_declaration_sv2 \
mining_sv2 \
template_distribution_sv2 \
sv2_ffi \
buffer_sv2 \
error_handling \
network_helpers \
translator_sv2 \
pool_sv2 \
mining_proxy_sv2 \
$@)
if echo "$output" | grep -q "Error: There is no crate eligible for publishing"; then
echo "No crate eligible for publishing. Exiting with success code."
exit 0
fi
echo "$output"