side_menu_doc/.woodpecker.yml

34 lines
749 B
YAML

steps:
build:
image: node:20
pull: true
commands:
- npm install --force
- npm run build
update:
image: alpine/git
commands:
- mv build /tmp/
- 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
- rm * -fr
- 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