pages-ci/.woodpecker.yml
Simon Vieille 5c901a5c47
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
fix ci syntax
2023-09-29 16:35:46 +02:00

28 lines
623 B
YAML

steps:
build:
image: klakegg/hugo
update:
image: alpine/git
commands:
- git fetch --no-tags origin +refs/heads/pages
- git switch pages
- git config --global user.email ci@gitnet.fr
- git config --global user.name CI
- mv public /tmp/
- rm * -fr
- mv /tmp/public/* .
- git add .
- git commit -m "Build ${CI_BUILD_NUMBER}"
deploy:
image: appleboy/drone-git-push
commands:
settings:
branch: pages
remote: git@gitnet.fr:deblan/pages-ci.git
force: false
commit: false
ssh_key:
from_secret: ssh_priv_key