From 79bf0bda56bfd8adf4de6351051693c0adeaa440 Mon Sep 17 00:00:00 2001 From: Simon Aronsson Date: Tue, 2 Jul 2019 11:56:54 +0200 Subject: [PATCH] inject ssh key during publish --- .circleci/config.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 2dafff3..3a4f752 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -60,7 +60,8 @@ workflows: - linting filters: branches: - ignore: /.*/ + only: /master/ + # ignore: /.*/ tags: only: /^v[0-9]+(\.[0-9]+)*$/ jobs: @@ -228,8 +229,12 @@ jobs: mkdocs \ mkdocs-material \ md-toc + - add_ssh_keys: + fingerprints: + - "89:6c:8d:6a:c2:7d:68:d6:4e:e3:4d:ca:00:f2:c2:59" - run: name: Generate and publish command: | + mkdir ~/.ssh && touch ~/.ssh/known_hosts; ssh-keyscan -H github.com >> ~/.ssh/known_hosts && \ mkdocs gh-deploy