ci: publish site assets

This commit is contained in:
Ming Di Leom 2022-03-04 11:05:40 +00:00
parent 4298af53d6
commit a16cdf7692
No known key found for this signature in database
GPG Key ID: 32D3E28E96A695E8
1 changed files with 19 additions and 0 deletions

19
.gitlab-ci.yml Normal file
View File

@ -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/