Files
docs/.woodpecker.yml
T
Odyssium d28053d7d0 asddasadsasdsadsaads
Signed-off-by: Odyssium <hi@odyssey346.dev>
2023-04-03 14:38:17 +02:00

26 lines
799 B
YAML

pipeline:
build:
image: squidfunk/mkdocs-material
commands:
- mkdocs build
deploy:
image: codeberg.org/video-prize-ranch/git-openssh-alpine:latest
secrets: [ ssh_key, mail ]
commands:
# SSH configuration
- mkdir ~/.ssh
- ssh-keyscan -t ed25519 codeberg.org >> ~/.ssh/known_hosts
- echo "$SSH_KEY" | tr -d '\r' > ~/.ssh/id_ed25519
- eval "$(ssh-agent -s)"
- chmod 600 ~/.ssh/id_ed25519
- ssh-add ~/.ssh/id_ed25519
# Configure Git
- git config --global user.email $MAIL
- git config --global user.name "Woodpecker CI"
- git clone --depth 1 git@codeberg.org:gothub/pages.git
- cd pages
- rm -rf docs
- mv ../site docs
- git add .
- git commit -m "Update docs"
- git push