diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 830fe42..f295efe 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -51,7 +51,8 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Publish package to rust package registry - if: startsWith(github.ref, 'refs/tags/') + # Push to crates.io only once. + if: matrix.os == 'ubuntu-latest' run: | cargo package cargo publish --token ${{ secrets.CARGO_TOKEN }} diff --git a/Cargo.lock b/Cargo.lock index 4df80f0..f4c4f29 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -244,7 +244,7 @@ dependencies = [ [[package]] name = "nakatoshi" -version = "0.1.2" +version = "0.1.3" dependencies = [ "bitcoin 0.23.0 (registry+https://github.com/rust-lang/crates.io-index)", "clap 2.33.1 (registry+https://github.com/rust-lang/crates.io-index)", diff --git a/Cargo.toml b/Cargo.toml index 6bb9146..82bba76 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "nakatoshi" -version = "0.1.2" +version = "0.1.3" authors = ["ndelvalle "] edition = "2018" description = "Bitcoin vanity address generator"