From c9fb3bf94dc5792ebaa979b29aaf39ec0924738e Mon Sep 17 00:00:00 2001 From: Distopico Vegan Date: Mon, 12 Nov 2018 22:00:47 -0500 Subject: [PATCH] update CI config --- .gitlab-ci.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a284db39..93ccdb0e 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -99,7 +99,13 @@ release: - export NVM_DIR="$HOME/.nvm" &&. "$NVM_DIR/nvm.sh" && nvm install 8 cache: {} script: - - npm install -g semantic-release @semantic-release/commit-analyzer @semantic-release/release-notes-generator @semantic-release/changelog @semantic-release/exec @semantic-release/git @semantic-release/gitlab + - npm install -g semantic-release @semantic-release/commit-analyzer @semantic-release/release-notes-generator @semantic-release/changelog @semantic-release/exec @semantic-release/git @semantic-release/gitlab + - eval $(ssh-agent -s) + #- echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add - > /dev/null + - ssh-add <(echo "$GIT_SSH_KEY") + - ssh-keyscan $GITLAB_URL >> ~/.ssh/known_hosts + - git config --global user.email $GIT_AUTHOR_EMAIL + - git config --global user.name $GIT_AUTHOR_NAME - git checkout $CI_COMMIT_SHA - semantic-release - git checkout develop && git rebase master && git push origin develop