From a16cdf7692acaa3d8ed1f1c3a4c738afc842053f Mon Sep 17 00:00:00 2001 From: Ming Di Leom <2809763-curben@users.noreply.gitlab.com> Date: Fri, 4 Mar 2022 11:05:40 +0000 Subject: [PATCH] ci: publish site assets --- .gitlab-ci.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..d00a4d9 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,19 @@ +image: alpine:latest + +pages: + before_script: + - apk update && apk add cpio + + script: + - mkdir -p .public + - find . \( -path ./node_modules -o -path ./themes -o -path '*/.*' -o -path ./README.md \) -prune -o -print | cpio -pdm .public/ + - mv .public public + + rules: + # Only "site" branch; Skip in renovate job + - if: '$RENOVATE != "true" && $CI_COMMIT_REF_NAME == "site"' + when: always + + artifacts: + paths: + - public/