fix(ci): temporary workaround for preview deletion (#834)

Related: Codeberg/Documentation#818, git-pages/git-pages-cli#44

May be reverted once the upstream issue is fixed.

Reviewed-on: https://codeberg.org/Codeberg/Documentation/pulls/834
Reviewed-by: Gusted <gusted@noreply.codeberg.org>
This commit is contained in:
mahlzahn 2026-07-09 19:07:03 +02:00 committed by Robert Wolff
parent 3c1f8948e5
commit 1fb1c234f4

View file

@ -2,6 +2,11 @@ when:
- event: pull_request_closed - event: pull_request_closed
steps: steps:
create-empty-dir:
image: alpine
commands:
- mkdir _empty
delete-preview: delete-preview:
image: codeberg.org/gedankenstuecke/git-pages-woodpecker-plugin@sha256:5257561a95054104f7499838817f3b447049a1edc14e87b99156b1302e0bce36 image: codeberg.org/gedankenstuecke/git-pages-woodpecker-plugin@sha256:5257561a95054104f7499838817f3b447049a1edc14e87b99156b1302e0bce36
settings: settings:
@ -9,7 +14,8 @@ steps:
PATH: pull_${CI_COMMIT_PULL_REQUEST} PATH: pull_${CI_COMMIT_PULL_REQUEST}
TOKEN: TOKEN:
from_secret: surge_forge_token from_secret: surge_forge_token
DELETE: true UPLOAD_DIR: _empty
depends_on: create-empty-dir
comment: comment:
image: mcs94/gitea-comment@sha256:f1a06366bfa34ff7594f369ebf81cbadd2d4410b7d51c9aa59c0c0264aa5fbd9 image: mcs94/gitea-comment@sha256:f1a06366bfa34ff7594f369ebf81cbadd2d4410b7d51c9aa59c0c0264aa5fbd9