From 1da50dc970e3560104c906b020819a5626b341da Mon Sep 17 00:00:00 2001 From: Jannis Harder Date: Thu, 16 May 2019 12:28:41 +0200 Subject: [PATCH 1/4] vec_mut_scan doesn't need a github push key --- .circleci/setup_git.sh | 5 ----- 1 file changed, 5 deletions(-) diff --git a/.circleci/setup_git.sh b/.circleci/setup_git.sh index 57c104a..6e6f522 100644 --- a/.circleci/setup_git.sh +++ b/.circleci/setup_git.sh @@ -5,9 +5,4 @@ if [ ! -z ${CIRCLECI+x} ]; then # Git needs a user/email to commit under git config --global user.name "CI Deploy" git config --global user.email "ci@example.com" - - # We setup our ssh push key - echo "$SSH_PRIVKEY" | base64 -d > ~/.ssh/id_ed25519 - echo "$SSH_PUBKEY" > ~/.ssh/id_ed25519.pub - chmod -R go= ~/.ssh fi From 9a33927f6b10487c0b6ae4d0078cd5227de1ee94 Mon Sep 17 00:00:00 2001 From: Jannis Harder Date: Thu, 16 May 2019 12:33:03 +0200 Subject: [PATCH 2/4] Use the correct docker image on CI --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 0d2c733..d9761c4 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -3,7 +3,7 @@ version: 2 jobs: test_and_deploy: docker: - - image: jixone/rust-ci:rust-stable + - image: jixone/rust-ci:rust-deploy steps: - checkout - run: | From 2df217c772b57ec8f5f5cc50f68a3b4965e051cb Mon Sep 17 00:00:00 2001 From: Jannis Harder Date: Thu, 16 May 2019 12:38:49 +0200 Subject: [PATCH 3/4] Upload .crate file as release ghr doesn't allow releases with no files, so we need to upload something. --- .circleci/config.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index d9761c4..83ad249 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -20,13 +20,15 @@ jobs: mkdir -p /tmp/workspace/release if [[ $VER != master ]]; then + cargo package + ghr -t $GITHUB_TOKEN \ -u $CIRCLE_PROJECT_USERNAME \ -r $CIRCLE_PROJECT_REPONAME \ -c $CIRCLE_SHA1 \ -n "vec_mut_scan $VER" \ -delete v$VER \ - /tmp/workspace/release + target/package cargo login $CARGO_TOKEN From 60b7096afe7922a020f78ab401fdc58774325299 Mon Sep 17 00:00:00 2001 From: Jannis Harder Date: Thu, 16 May 2019 12:17:22 +0200 Subject: [PATCH 4/4] Release version 0.1.0 --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 52fe83f..d6e8d15 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "vec_mut_scan" -version = "0.0.0" +version = "0.1.0" authors = ["Jannis Harder "] edition = "2018" description = "Forward scan over a vector with mutation and item removal"