Skip to content

Commit

Permalink
Relase to crates.io from github actions (#450)
Browse files Browse the repository at this point in the history
* Relase to crates.io from github actions

* bump version
  • Loading branch information
vkgnosis authored Jan 14, 2021
1 parent 81d4520 commit 46abb88
Show file tree
Hide file tree
Showing 7 changed files with 26 additions and 22 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name: release
on:
release:
types: [published]
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: ci/deploy.sh --tag ${GITHUB_REF#refs/tags/} --token ${{ secrets.CARGO_TOKEN }}
11 changes: 0 additions & 11 deletions .travis.yml

This file was deleted.

9 changes: 7 additions & 2 deletions ci/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

set -e

token=$CARGO_TOKEN
tag=$TRAVIS_TAG
token=""
tag=""
options=""
while [[ $# -gt 0 ]]; do
case $1 in
Expand Down Expand Up @@ -37,6 +37,11 @@ EOF
shift
done

if [[ -z "$tag" || -z "$token" ]]; then
>&2 echo "ERROR: missing tag and/or token parameters"
exit 1
fi

function check_manifest_version {
version=$(cat $1 | grep '^version' | sed -n 's/version = "\(.*\)"/v\1/p')
if [[ ! $version = $tag ]]; then
Expand Down
2 changes: 1 addition & 1 deletion ethcontract-common/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "ethcontract-common"
version = "0.10.0"
version = "0.10.1"
authors = ["Nicholas Rodrigues Lordello <[email protected]>"]
edition = "2018"
license = "MIT OR Apache-2.0"
Expand Down
6 changes: 3 additions & 3 deletions ethcontract-derive/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "ethcontract-derive"
version = "0.10.0"
version = "0.10.1"
authors = ["Nicholas Rodrigues Lordello <[email protected]>"]
edition = "2018"
license = "MIT OR Apache-2.0"
Expand All @@ -15,8 +15,8 @@ Proc macro for generating type-safe bindings to Ethereum smart contracts.
proc-macro = true

[dependencies]
ethcontract-common = { version = "0.10.0", path = "../ethcontract-common" }
ethcontract-generate = { version = "0.10.0", path = "../ethcontract-generate" }
ethcontract-common = { version = "0.10.1", path = "../ethcontract-common" }
ethcontract-generate = { version = "0.10.1", path = "../ethcontract-generate" }
proc-macro2 = "1.0"
quote = "1.0"
syn = "1.0.12"
4 changes: 2 additions & 2 deletions ethcontract-generate/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "ethcontract-generate"
version = "0.10.0"
version = "0.10.1"
authors = ["Nicholas Rodrigues Lordello <[email protected]>"]
edition = "2018"
license = "MIT OR Apache-2.0"
Expand All @@ -14,7 +14,7 @@ Code generation for type-safe bindings to Ethereum smart contracts.
[dependencies]
anyhow = "1.0"
curl = "0.4"
ethcontract-common = { version = "0.10.0", path = "../ethcontract-common" }
ethcontract-common = { version = "0.10.1", path = "../ethcontract-common" }
Inflector = "0.11"
proc-macro2 = "1.0"
quote = "1.0"
Expand Down
6 changes: 3 additions & 3 deletions ethcontract/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "ethcontract"
version = "0.10.0"
version = "0.10.1"
authors = ["Nicholas Rodrigues Lordello <[email protected]>"]
edition = "2018"
license = "MIT OR Apache-2.0"
Expand All @@ -25,8 +25,8 @@ ws-tokio = ["web3/ws-tokio"]
ws-tls-tokio = ["web3/ws-tls-tokio"]

[dependencies]
ethcontract-common = { version = "0.10.0", path = "../ethcontract-common" }
ethcontract-derive = { version = "0.10.0", path = "../ethcontract-derive", optional = true}
ethcontract-common = { version = "0.10.1", path = "../ethcontract-common" }
ethcontract-derive = { version = "0.10.1", path = "../ethcontract-derive", optional = true}
futures = "0.3"
futures-timer = "3.0"
hex = "0.4"
Expand Down

0 comments on commit 46abb88

Please sign in to comment.