feat: improve substream release script
Improvements include: - exit the script if any non-recoverable step fails - fix bug where cargo version was hardcoded to be detected in balancer package - allow optional input of substream config file. This is necessary for protocols with forks as they will have multiple configs in one directory
This commit is contained in:
6
.github/workflows/substream.cd.yaml
vendored
6
.github/workflows/substream.cd.yaml
vendored
@@ -9,6 +9,10 @@ on:
|
||||
package:
|
||||
required: true
|
||||
description: "Package to build"
|
||||
config_file:
|
||||
required: false
|
||||
description: "Path to the substreams configuration file"
|
||||
default: "substreams.yaml"
|
||||
|
||||
jobs:
|
||||
Release:
|
||||
@@ -42,4 +46,4 @@ jobs:
|
||||
- name: Run checks
|
||||
run: |
|
||||
cd substreams
|
||||
./release.sh ${{ inputs.package }}
|
||||
./release.sh ${{ inputs.package }} ${{ inputs.config_file }}
|
||||
|
||||
Reference in New Issue
Block a user