Skip to content

Commit

Permalink
feat: add CD configuration (#3)
Browse files Browse the repository at this point in the history
* chore: prepare package configuration for CD

Signed-off-by: Luca Georges Francois <[email protected]>

* cd: add releaser configuration

Signed-off-by: Luca Georges Francois <[email protected]>

---------

Signed-off-by: Luca Georges Francois <[email protected]>
  • Loading branch information
0xpanoramix authored Dec 3, 2023
1 parent 7123c9b commit f7ebeb5
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: "CD"

# Only triggers when there's a tag push.
on:
push:
tags:
- "v*.*.*"

env:
CARGO_TERM_COLOR: always

defaults:
run:
shell: bash

jobs:
publish:

name: "Publish library to crates.io"
runs-on: ubuntu-latest

steps:
- name: "Clones the repository"
uses: actions/checkout@v3

- name: "Setup Rust toolchain"
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true

- name: "Publish to crates.io"
uses: katyo/publish-crates@v1
with:
registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}
ignore-unpublished-changes: true
2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ authors = ["Luca Georges François <[email protected]>"]
description = "Rust SDK for the Relay Data Transparency API on Ethereum"
repository = "https://github.com/quartz-technology/redax-rs"
license-file = "LICENSE"
keywords = ["sdk", "ethereum", "mev", "relay"]
categories = ["api-bindings"]
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
Expand Down

0 comments on commit f7ebeb5

Please sign in to comment.