Implement a substreams CD
This commit is contained in:
37
.github/workflows/substream.cd.yaml
vendored
Normal file
37
.github/workflows/substream.cd.yaml
vendored
Normal file
@@ -0,0 +1,37 @@
|
||||
name: Substreams CD
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- "ethereum-*"
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
package:
|
||||
required: true
|
||||
description: "Package to build"
|
||||
|
||||
jobs:
|
||||
Release:
|
||||
name: Release ${{ inputs.package }}
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 30
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
submodules: recursive
|
||||
|
||||
- name: Setup toolchain
|
||||
uses: dtolnay/rust-toolchain@v1
|
||||
with:
|
||||
toolchain: stable
|
||||
targets: wasm32-unknown-unknown
|
||||
|
||||
- name: Setup Rust Cache
|
||||
uses: Swatinem/rust-cache@v2
|
||||
with:
|
||||
cache-on-failure: true
|
||||
|
||||
- name: Run checks
|
||||
run: |
|
||||
cd substreams
|
||||
./release.sh ${{ inputs.package }}
|
||||
Reference in New Issue
Block a user