ci-configs/docs.yaml

22 lines
588 B
YAML
Raw Normal View History

2022-03-23 22:07:01 +01:00
steps:
- name: build
2024-04-28 15:53:16 +02:00
image: alpine
commands:
- apk add mdbook
- mdbook build
2022-03-23 22:07:01 +01:00
- name: publish
2024-04-28 15:53:16 +02:00
image: rclone/rclone:latest
secrets: [ web_pw ]
commands:
- export RCLONE_SFTP_PASS="$(rclone obscure $WEB_PW)"
2024-04-28 16:07:24 +02:00
- rclone sync ./public/ :sftp:/${CI_REPO_OWNER}/${CI_REPO_NAME}
2024-04-28 15:53:16 +02:00
environment:
RCLONE_SFTP_HOST: git.tilera.org
RCLONE_SFTP_USER: webmaster
2024-04-28 16:07:24 +02:00
RCLONE_SFTP_PORT: "2022"
2022-03-23 22:07:01 +01:00
when:
2024-09-24 20:44:40 +02:00
- event: push
2022-03-23 22:07:01 +01:00
branch: master
2024-09-24 20:44:40 +02:00
- event: manual
2022-03-23 22:07:01 +01:00
depends_on:
- build