side_menu_doc/.woodpecker.yml
Simon Vieille 31e6ec6dc2
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
update ci
2024-01-25 17:18:48 +01:00

35 lines
776 B
YAML

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