CI
This commit is contained in:
parent
d0c1a7db9c
commit
e7895ccb25
@ -11,10 +11,10 @@ steps:
|
|||||||
from_secret: key
|
from_secret: key
|
||||||
commands:
|
commands:
|
||||||
- mkdir ~/.ssh && echo "$KEY" > ~/.ssh/id_rsa && chmod 600 -R ~/.ssh
|
- mkdir ~/.ssh && echo "$KEY" > ~/.ssh/id_rsa && chmod 600 -R ~/.ssh
|
||||||
- hugo -e prod --printI18nWarnings --printPathWarnings --printUnusedTemplates --templateMetricsHints
|
- hugo -e prod --printI18nWarnings --printUnusedTemplates --templateMetricsHints
|
||||||
- ssh-keyscan -t rsa github.com >> ~/.ssh/known_hosts
|
- ssh-keyscan -t rsa github.com >> ~/.ssh/known_hosts
|
||||||
- git clone --branch gh-pages git@github.com:Ghost-Zephyr/Ghost-Zephyr.github.io.git github
|
- git clone --branch gh-pages git@github.com:Ghost-Zephyr/Ghost-Zephyr.github.io.git github
|
||||||
- rm github/* && cp -r public/* github/
|
- rm -fr github/* && cp -r public/* github/
|
||||||
- cd github/ && git add -A && git commit -m "Drone CI!~ $(git rev-parse --short HEAD)" && git push
|
- cd github/ && git add -A && git commit -m "Drone CI!~ $(git rev-parse --short HEAD)" && git push
|
||||||
|
|
||||||
image_pull_secrets:
|
image_pull_secrets:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user