inject ssh key during publish

pull/336/head
Simon Aronsson 5 years ago
parent 76fdabfe6d
commit 79bf0bda56

@ -60,7 +60,8 @@ workflows:
- linting - linting
filters: filters:
branches: branches:
ignore: /.*/ only: /master/
# ignore: /.*/
tags: tags:
only: /^v[0-9]+(\.[0-9]+)*$/ only: /^v[0-9]+(\.[0-9]+)*$/
jobs: jobs:
@ -228,8 +229,12 @@ jobs:
mkdocs \ mkdocs \
mkdocs-material \ mkdocs-material \
md-toc md-toc
- add_ssh_keys:
fingerprints:
- "89:6c:8d:6a:c2:7d:68:d6:4e:e3:4d:ca:00:f2:c2:59"
- run: - run:
name: Generate and publish name: Generate and publish
command: | command: |
mkdir ~/.ssh && touch ~/.ssh/known_hosts;
ssh-keyscan -H github.com >> ~/.ssh/known_hosts && \ ssh-keyscan -H github.com >> ~/.ssh/known_hosts && \
mkdocs gh-deploy mkdocs gh-deploy

Loading…
Cancel
Save