Add website
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user