mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-30 17:47:56 +00:00
fix substrate-node-template generation (#2050)
# Description This PR updates the node-template-release generation binary as well as the `node-template-release.sh` file so that we can automatically push updates to the [substrate-node-template repository](https://github.com/substrate-developer-hub/substrate-node-template). I assume this part was not updated after the substrate project has been moved into the polkadot-sdk mono repo. # Adjustments - extend the `node-template-release.sh` to support the substrate child-folder - update the `SUBSTRATE_GIT_URL` - fix the Cargo.toml filter (so that it does not include any non-relevant .toml files) - set the workspace-edition to 2021 # Note In order to auto-generate the artifacts [this line](https://github.com/paritytech/polkadot-sdk/blob/master/.gitlab/pipeline/build.yml#L320C15-L320C15) needs to be included in the build.yml script again. Since I do not have access to the (probably) internal gitlab environment I hope that someone with actual access can introduce that change. I also do not know how the auto-publish feature works so that would be another thing to add later on. --------- Co-authored-by: Bastian Köcher <git@kchr.de>
This commit is contained in:
@@ -3,7 +3,9 @@
|
||||
set -e
|
||||
|
||||
export TERM=xterm
|
||||
PROJECT_ROOT=`git rev-parse --show-toplevel`
|
||||
SUBSTRATE_FOLDER="/substrate"
|
||||
GIT_ROOT=`git rev-parse --show-toplevel`
|
||||
PROJECT_ROOT=${GIT_ROOT}${SUBSTRATE_FOLDER}
|
||||
|
||||
if [ "$#" -ne 1 ]; then
|
||||
echo "node-template-release.sh path_to_target_archive"
|
||||
@@ -11,6 +13,6 @@ if [ "$#" -ne 1 ]; then
|
||||
fi
|
||||
|
||||
PATH_TO_ARCHIVE=$1
|
||||
cd $PROJECT_ROOT/scripts/ci/node-template-release
|
||||
|
||||
cd $PROJECT_ROOT/scripts/ci/node-template-release
|
||||
cargo run $PROJECT_ROOT/bin/node-template $PROJECT_ROOT/$PATH_TO_ARCHIVE
|
||||
|
||||
Reference in New Issue
Block a user