diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 3d8e5d5..4776426 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -18,6 +18,25 @@ jobs: with: toolchain: stable + - name: get sd + uses: robinraju/release-downloader@v1.3 + with: + repository: "chmln/sd" + tag: "v0.7.6" + fileName: "sd-v0.7.6-x86_64-unknown-linux-musl" + + run: | + mkdir -pv ${GITHUB_WORKSPACE}/bin + mv -v sd-v0.7.6-x86_64-unknown-linux-musl ${GITHUB_WORKSPACE}/bin/sd + echo "::add-path::${GITHUB_WORKSPACE}/bin" + chmod +x "${GITHUB_WORKSPACE}/bin/sd" + + - name: set version to tag version + uses: actions-rs/cargo@v1 + with: + command: run + args: --release -- version set $(git tag --contains HEAD --format='%(refname)' | sd '^refs/tags/v([0-9]+\.[0-9]+\.[0-9]+(?:-[A-Za-z0-9]+(?:\.[0-9]+)?)?)$' '$1' ) + - name: Deploy by self uses: actions-rs/cargo@v1 diff --git a/Cargo.lock b/Cargo.lock index 5cb1c3f..edb9d9f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -43,9 +43,9 @@ checksum = "ee67c11feeac938fae061b232e38e0b6d94f97a9df10e6271319325ac4c56a86" [[package]] name = "assert_cmd" -version = "2.0.2" +version = "2.0.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e996dc7940838b7ef1096b882e29ec30a3149a3a443cdc8dba19ed382eca1fe2" +checksum = "93ae1ddd39efd67689deb1979d80bad3bf7f2b09c6e6117c8d1f2443b5e2f83e" dependencies = [ "bstr", "doc-comment", @@ -57,9 +57,9 @@ dependencies = [ [[package]] name = "assert_fs" -version = "1.0.6" +version = "1.0.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "633ff1df0788db09e2087fb93d05974e93acb886ac3aec4e67be1d6932e360e4" +checksum = "cf09bb72e00da477c2596865e8873227e2196d263cca35414048875dbbeea1be" dependencies = [ "doc-comment", "globwalk", @@ -224,7 +224,7 @@ dependencies = [ [[package]] name = "cargo-unleash" -version = "1.0.0-alpha.dev" +version = "1.0.0-alpha.14" dependencies = [ "anyhow", "assert_cmd", @@ -1018,9 +1018,9 @@ checksum = "ac74c624d6b2d21f425f752262f42188365d7b8ff1aff74c82e45136510a4857" [[package]] name = "predicates" -version = "2.0.3" +version = "2.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5c6ce811d0b2e103743eec01db1c50612221f173084ce2f7941053e94b6bb474" +checksum = "a5aab5be6e4732b473071984b3164dbbfb7a3674d30ea5ff44410b6bcd960c3c" dependencies = [ "difflib", "float-cmp", @@ -1032,15 +1032,15 @@ dependencies = [ [[package]] name = "predicates-core" -version = "1.0.2" +version = "1.0.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "57e35a3326b75e49aa85f5dc6ec15b41108cf5aee58eabb1f274dd18b73c2451" +checksum = "da1c2388b1513e1b605fcec39a95e0a9e8ef088f71443ef37099fa9ae6673fcb" [[package]] name = "predicates-tree" -version = "1.0.4" +version = "1.0.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "338c7be2905b732ae3984a2f40032b5e94fd8f52505b186c7d4d68d193445df7" +checksum = "4d86de6de25020a36c6d3643a86d9a6a9f552107c0559c60ea03551b5e16c032" dependencies = [ "predicates-core", "termtree", @@ -1412,9 +1412,9 @@ dependencies = [ [[package]] name = "termtree" -version = "0.2.3" +version = "0.2.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "13a4ec180a2de59b57434704ccfad967f789b12737738798fa08798cd5824c16" +checksum = "507e9898683b6c43a9aa55b64259b721b52ba226e0f3779137e50ad114a4c90b" [[package]] name = "textwrap" diff --git a/Cargo.toml b/Cargo.toml index 2f7bfcf..e4ed8c0 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "cargo-unleash" -version = "1.0.0-alpha.dev" +version = "1.0.0-alpha.14" authors = ["Benjamin Kampmann "] edition = "2021" rust-version = "1.56.1"