MadelineProtoDocs/.woodpecker.yml

29 lines
851 B
YAML
Raw Permalink Normal View History

2024-05-01 14:53:46 +02:00
steps:
build:
image: danog/gojekyll
when:
branch: master
event: push
secrets:
- 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 "daniil@daniil.it"
- git config --global user.name "Daniil Gentili"
- git remote add o git@github.com:danog/MadelineProtoDocs.git
- cd docs
- gojekyll build
- rm -rf /tmp/_site
- cp -a _site /tmp/
- cd ..
2024-05-01 14:58:23 +02:00
- git branch -D gh-pages || true
- git switch --orphan gh-pages
2024-05-01 14:53:46 +02:00
- cp -a /tmp/_site/* .
- git add -A
- git commit -am 'Update'
2024-05-01 14:58:23 +02:00
- git push -f o gh-pages