mirror of
https://codeberg.org/gothub/docs
synced 2024-12-06 19:16:44 +01:00
d28053d7d0
Signed-off-by: Odyssium <hi@odyssey346.dev>
26 lines
799 B
YAML
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 |