Merge pull request #1325 from GitGab19/fix-timestamp-bug #122
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This workflow is used to publish SV2 crates to crates.io | |
# the workflow tries to publish all the library crates by running scripts/release-libs.sh | |
# in case the `cargo publish` command fails, the script returns 1 and the entire workflow fails | |
# the only exception is when the `cargo publish` command fails because the crate has already | |
# been published, in which case the workflow continues | |
name: Release Libs | |
on: | |
# Manually run by going to "Actions/Release" in Github and running the workflow | |
workflow_dispatch: | |
# every time a new release tag is created | |
push: | |
tags: | |
- "v*.*.*" | |
jobs: | |
libs_publish: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- uses: actions/checkout@v4 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: 1.75.0 | |
override: true | |
- name: Login | |
run: cargo login ${{ secrets.CRATES_IO_DEPLOY_KEY }} | |
- name: Publish crate common | |
run: | | |
./scripts/release-libs.sh common | |
- name: Publish crate buffer_sv2 | |
run: | | |
./scripts/release-libs.sh utils/buffer | |
- name: Publish crate no_serde_sv2_derive_codec | |
run: | | |
./scripts/release-libs.sh protocols/v2/binary-sv2/no-serde-sv2/derive_codec | |
- name: Publish crate no_serde_sv2_codec | |
run: | | |
./scripts/release-libs.sh protocols/v2/binary-sv2/no-serde-sv2/codec | |
- name: Publish crate serde_sv2 | |
run: | | |
./scripts/release-libs.sh protocols/v2/binary-sv2/serde-sv2 | |
- name: Publish crate binary_sv2 | |
run: | | |
./scripts/release-libs.sh protocols/v2/binary-sv2/binary-sv2 | |
- name: Publish crate const_sv2 | |
run: | | |
./scripts/release-libs.sh protocols/v2/const-sv2 | |
- name: Publish crate framing_sv2 | |
run: | | |
./scripts/release-libs.sh protocols/v2/framing-sv2 | |
- name: Publish crate noise_sv2 | |
run: | | |
./scripts/release-libs.sh protocols/v2/noise-sv2 | |
- name: Publish crate codec_sv2 | |
run: | | |
./scripts/release-libs.sh protocols/v2/codec-sv2 | |
- name: Publish crate common_messages | |
run: | | |
./scripts/release-libs.sh protocols/v2/subprotocols/common-messages | |
- name: Publish crate job_declaration | |
run: | | |
./scripts/release-libs.sh protocols/v2/subprotocols/job-declaration | |
- name: Publish crate mining | |
run: | | |
./scripts/release-libs.sh protocols/v2/subprotocols/mining | |
- name: Publish crate template_distribution | |
run: | | |
./scripts/release-libs.sh protocols/v2/subprotocols/template-distribution | |
- name: Publish crate sv2_ffi | |
run: | | |
./scripts/release-libs.sh protocols/v2/sv2-ffi | |
- name: Publish crate roles_logic_sv2 | |
run: | | |
./scripts/release-libs.sh protocols/v2/roles-logic-sv2 | |
- name: Publish crate v1 | |
run: | | |
./scripts/release-libs.sh protocols/v1 | |
- name: Publish crate bip32-key-derivation | |
run: | | |
./scripts/release-libs.sh utils/bip32-key-derivation | |
- name: Publish crate error-handling | |
run: | | |
./scripts/release-libs.sh utils/error-handling | |
- name: Publish crate key-utils | |
run: | | |
./scripts/release-libs.sh utils/key-utils | |
- name: Publish crate network_helpers_sv2 | |
run: | | |
./scripts/release-libs.sh roles/roles-utils/network-helpers | |
- name: Publish crate rpc_sv2 | |
run: | | |
./scripts/release-libs.sh roles/roles-utils/rpc |