mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-12 03:01:07 +00:00
build tagged versions (#1712)
This commit is contained in:
committed by
GitHub
parent
db572aa0b9
commit
94e1e38008
@@ -75,12 +75,6 @@ test:rust:stable: &test
|
||||
script:
|
||||
- time cargo test --all --release --verbose --locked
|
||||
|
||||
.optional_test: &optional_test
|
||||
<<: *test
|
||||
allow_failure: true
|
||||
only:
|
||||
- master
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -107,9 +101,13 @@ build:rust:linux:release: &build
|
||||
- mkdir -p ./artifacts
|
||||
- mv ./target/release/substrate ./artifacts/.
|
||||
- echo -n "Substrate version = "
|
||||
- ./artifacts/substrate --version |
|
||||
sed -n -r 's/^substrate ([0-9.]+.*-[0-9a-f]{7,13})-.*$/\1/p' |
|
||||
tee ./artifacts/VERSION
|
||||
- if [ "${CI_COMMIT_TAG}" ]; then
|
||||
echo "${CI_COMMIT_TAG}" | tee ./artifacts/VERSION;
|
||||
else
|
||||
./artifacts/substrate --version |
|
||||
sed -n -r 's/^substrate ([0-9.]+.*-[0-9a-f]{7,13})-.*$/\1/p' |
|
||||
tee ./artifacts/VERSION;
|
||||
fi
|
||||
- sha256sum ./artifacts/substrate | tee ./artifacts/substrate.sha256
|
||||
- ./scripts/node-template-release.sh ./artifacts/substrate-node-template.tar.gz
|
||||
|
||||
@@ -123,11 +121,7 @@ build:rust:doc:release: &build
|
||||
expire_in: 7 days
|
||||
paths:
|
||||
- ./crate-docs
|
||||
only:
|
||||
- master
|
||||
- tags
|
||||
- web
|
||||
- publish-rustdoc
|
||||
<<: *build_only
|
||||
tags:
|
||||
- linux-docker
|
||||
script:
|
||||
|
||||
Reference in New Issue
Block a user