22 lines
No EOL
588 B
YAML
22 lines
No EOL
588 B
YAML
steps:
|
|
- name: build
|
|
image: alpine
|
|
commands:
|
|
- apk add mdbook
|
|
- mdbook build
|
|
- name: publish
|
|
image: rclone/rclone:latest
|
|
secrets: [ web_pw ]
|
|
commands:
|
|
- export RCLONE_SFTP_PASS="$(rclone obscure $WEB_PW)"
|
|
- rclone sync ./public/ :sftp:/${CI_REPO_OWNER}/${CI_REPO_NAME}
|
|
environment:
|
|
RCLONE_SFTP_HOST: git.tilera.org
|
|
RCLONE_SFTP_USER: webmaster
|
|
RCLONE_SFTP_PORT: "2022"
|
|
when:
|
|
- event: push
|
|
branch: master
|
|
- event: manual
|
|
depends_on:
|
|
- build |