2024-06-12 01:52:08 -07:00
|
|
|
when:
|
2026-06-25 03:12:36 -07:00
|
|
|
- event: pull_request
|
2024-06-12 01:52:08 -07:00
|
|
|
|
|
|
|
|
steps:
|
2026-06-25 03:12:36 -07:00
|
|
|
change-path:
|
|
|
|
|
image: alpine
|
|
|
|
|
commands:
|
|
|
|
|
- |
|
|
|
|
|
sed -i.orig -e "s~pathPrefix: '/'~pathPrefix: '/documentation/pull_${CI_COMMIT_PULL_REQUEST}/'~" eleventy.config.mjs
|
|
|
|
|
|
2024-06-12 01:52:08 -07:00
|
|
|
build:
|
2026-06-25 07:44:09 -07:00
|
|
|
image: codeberg.org/woodpecker-plugins/node-pm@sha256:bff3ee2d7492e89a0dfbe6ee4c7d5ce636108cd973c0c355269f681e8dd8a196
|
2024-06-12 01:52:08 -07:00
|
|
|
settings:
|
|
|
|
|
run: build
|
2024-06-12 02:43:56 -07:00
|
|
|
with: pnpm
|
2024-06-12 01:52:08 -07:00
|
|
|
frozen_lockfile: true
|
|
|
|
|
ignore_node_modules: true
|
2026-06-25 04:32:41 -07:00
|
|
|
depends_on: change-path
|
2024-06-12 01:52:08 -07:00
|
|
|
|
|
|
|
|
deploy-preview:
|
2026-06-26 02:32:22 -07:00
|
|
|
image: codeberg.org/gedankenstuecke/git-pages-woodpecker-plugin@sha256:5257561a95054104f7499838817f3b447049a1edc14e87b99156b1302e0bce36
|
2026-06-25 03:12:36 -07:00
|
|
|
settings:
|
|
|
|
|
SITE_URL: https://codeberg.codeberg.page/documentation
|
|
|
|
|
PATH: pull_${CI_COMMIT_PULL_REQUEST}
|
|
|
|
|
TOKEN:
|
|
|
|
|
from_secret: surge_forge_token
|
|
|
|
|
UPLOAD_DIR: _site
|
2026-06-25 04:32:41 -07:00
|
|
|
depends_on: build
|
2026-06-25 03:12:36 -07:00
|
|
|
|
|
|
|
|
comment:
|
2026-06-25 07:44:09 -07:00
|
|
|
image: mcs94/gitea-comment@sha256:f1a06366bfa34ff7594f369ebf81cbadd2d4410b7d51c9aa59c0c0264aa5fbd9
|
2024-06-12 01:52:08 -07:00
|
|
|
settings:
|
2026-06-25 03:12:36 -07:00
|
|
|
gitea_address: https://codeberg.org
|
|
|
|
|
gitea_token:
|
2024-06-12 01:52:08 -07:00
|
|
|
from_secret: surge_forge_token
|
2026-06-25 04:32:41 -07:00
|
|
|
comment: 'Preview ready: https://codeberg.codeberg.page/documentation/pull_${CI_COMMIT_PULL_REQUEST}'
|
2026-06-25 03:12:36 -07:00
|
|
|
depends_on: deploy-preview
|