Skip to content

Release v0.8.2 (#42) #14

Release v0.8.2 (#42)

Release v0.8.2 (#42) #14

Workflow file for this run

name: release
on:
push:
tags:
- v*
jobs:
check-version:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Check version
run: |
TAG_VERSION=$(echo ${GITHUB_REF#refs/tags/v})
CRATE_VERSION=$(cargo metadata --no-deps --format-version 1 | jq -r '.packages[0].version')
test "$TAG_VERSION" = "$CRATE_VERSION"
publish:
runs-on: ubuntu-latest
needs: check-version
env:
CARGO_REGISTRY_TOKEN: "${{ secrets.CARGO_REGISTRY_TOKEN }}"
steps:
- uses: actions/checkout@v3
- name: Publish derive crate
run: cargo publish -p ethereum_ssz_derive
# `ethereum_ssz` depends on `ethereum_ssz_derive` to publish, so sleep a
# bit to give crates.io some time to update.
- name: Sleep for 3 minutes
run: sleep 180s
shell: bash
- name: Publish main crate
run: cargo publish -p ethereum_ssz