2022-11-03 15:45:14 +01:00
|
|
|
#include https://pages.frohnmeyer-wds.de/scripts/clone.yml
|
|
|
|
|
2023-12-07 19:06:56 +01:00
|
|
|
steps:
|
2022-10-28 16:03:23 +02:00
|
|
|
build:
|
|
|
|
image: archlinux:latest
|
2023-12-07 19:06:56 +01:00
|
|
|
pull: true
|
2022-10-28 16:03:23 +02:00
|
|
|
commands:
|
2023-08-13 19:50:28 +02:00
|
|
|
- pacman -Syu mdbook --noconfirm
|
2022-10-28 16:03:23 +02:00
|
|
|
- mdbook build
|
|
|
|
when:
|
2024-07-18 14:07:21 +02:00
|
|
|
- branch: ${CI_REPO_DEFAULT_BRANCH}
|
2022-10-28 16:03:23 +02:00
|
|
|
publish:
|
|
|
|
image: woodpeckerci/plugin-s3
|
2023-12-07 19:06:56 +01:00
|
|
|
pull: true
|
2022-10-28 16:03:23 +02:00
|
|
|
settings:
|
|
|
|
bucket: pages
|
|
|
|
region: nebula
|
|
|
|
path_style: true
|
|
|
|
endpoint: https://s3.frohnmeyer-wds.de
|
|
|
|
access_key: pages
|
|
|
|
secret_key:
|
|
|
|
from_secret: pages_secret
|
|
|
|
source: public/**/*
|
|
|
|
target: /${CI_REPO}
|
|
|
|
strip_prefix: public/
|
2024-07-18 12:23:18 +02:00
|
|
|
overwrite: true
|
2022-10-28 16:03:23 +02:00
|
|
|
when:
|
2024-07-18 14:07:21 +02:00
|
|
|
- branch: ${CI_REPO_DEFAULT_BRANCH}
|