-
Notifications
You must be signed in to change notification settings - Fork 222
/
.woodpecker.yml
29 lines (29 loc) · 886 Bytes
/
.woodpecker.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
steps:
build:
image: danog/gojekyll
when:
branch: master
event: push
environment:
DEPLOY_KEY:
from_secret: DEPLOY_KEY
commands:
- apt-get update && apt-get -y install openssh-client git
- mkdir -p $HOME/.ssh
- ssh-keyscan -t rsa github.com >> $HOME/.ssh/known_hosts
- echo "$DEPLOY_KEY" > $HOME/.ssh/id_rsa
- chmod 0600 $HOME/.ssh/id_rsa
- git config --global user.email "[email protected]"
- git config --global user.name "Daniil Gentili"
- git remote add o [email protected]:danog/MadelineProtoDocs.git
- cd docs
- gojekyll build
- rm -rf /tmp/_site
- cp -a _site /tmp/
- cd ..
- git branch -D gh-pages || true
- git switch --orphan gh-pages
- cp -a /tmp/_site/* .
- git add -A
- git commit -am 'Update'
- git push -f o gh-pages