Add website

This commit is contained in:
Romain Vigier
2021-08-20 15:39:20 +02:00
parent 7311a9cce8
commit 8d9be91921
16 changed files with 329 additions and 0 deletions
+18
View File
@@ -11,6 +11,7 @@ workflow:
stages:
- check
- build
- deploy
.python:
image: python:latest
@@ -79,3 +80,20 @@ extension:
paths:
- build/nightthemeswitcher@romainvigier.fr.shell-extension.zip
expire_in: 1 day
pages:
stage: deploy
needs: []
image: fedora:latest
script:
- cp -r website public
- find public -type f -regex '.*\.\(|html\|css\|svg\|png\|woff\|woff2\)$' -exec gzip -f -k {} \;
- find public -type f -regex '.*\.\(|html\|css\|svg\|png\|woff\|woff2\)$' -exec brotli -f -k {} \;
rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
changes:
- website/**/*
artifacts:
paths:
- public
expire_in: 1 day