don't copy .domains for the pr-preview, it shouldn't be redirected

This commit is contained in:
Heiko Schaefer 2023-12-12 18:34:54 +01:00
parent 036f979167
commit 910b4f9976
No known key found for this signature in database
GPG key ID: DAE9A9050FCCF1EB

View file

@ -21,8 +21,6 @@ steps:
- git clone -b pages https://$CODEBERG_TOKEN@codeberg.org/openpgp/pr-preview.git pr-preview
- rm -rf pr-preview/$CI_COMMIT_PULL_REQUEST
- cp -ar public/. pr-preview/$CI_COMMIT_PULL_REQUEST
# Needed for custom domains
- cp .domains pr-preview || true # Ignore if it doesn't exist
- cd pr-preview
- >
if [ -z "$(git status --porcelain)" ]; then